Can you beat my game?
Community Forums/Showcase/Can you beat my game?
| ||
No exe, compile it yourself: Very simple game, I'm not sure how to beat it. You click the array and you can only move like the horse moves in the chess game. F2 resets the game. My high score is 42 AppTitle "Small game by nawitus - F2 to restart" Dim Map(8,8) Map(4,4) = 1 Global C=1,lastx=4,lasty=4 Graphics 288,288,0,2 Repeat Rect 0,0,96,96,1 Rect 0,192,96,96,1 Rect 192,0,96,96,1 Rect 192,192,96,96,1 For x=0 To 8 For y=0 To 8 Rect x*32,y*32,32,32,0 If Map(x,y) Then Text x*32+10,y*32+10,Map(x,y) Next Next If MouseHit(1) Then mx=MouseX():my=MouseY() tx = Floor(mx/32) ty = Floor(my/32) If (tx>-1) And (ty>-1) And (tx<9) And (ty<9) If Map(tx,ty) = 0 If Not(tx<3 And ty<3) If Not(tx>5 And ty>5) If Not(tx<3 And ty>5) If Not(tx>5 And ty<3) If check(tx,ty) C=c+1 Map(tx,ty) = C lastx=tx lasty=ty EndIf EndIf EndIf EndIf EndIf EndIf EndIf EndIf If KeyHit(60) For x=0 To 8 For y=0 To 8 Map(x,y)=0 Next Next C=1 Map(4,4)=1 lastx=4 lasty=4 EndIf Flip Cls Until KeyHit(1) Function Check(tx,ty) If (Abs(lastx-tx) = 2) And (Abs(lasty-ty)=1) Return 1 If (Abs(lastx-tx) = 1) And (Abs(lasty-ty)=2) Return 1 End Function |
| ||
I got 36 on my first go. |
| ||
Maybe you should say it's BPlus code. Anyway here's a BMax conversion: |
| ||
My best score was 28 |
| ||
I got 42, same as you. That's the best I can do. |
| ||
Nice game :). I got 42. |
| ||
36 on first as well nice small game :D |
| ||
40 on second try. Pretty interesting game. Seems like something that would be on one of those "test your brain power" quizzes. |
| ||
Intresting game, simple concept too. I will not however, post my embarassing low score though... |
| ||
42 on first go, had 3 squares empty. I just went in spirals. |
| ||
weee.. got 42 myself..don't know if it's possible to get more. |
| ||
41 :( |
| ||
38 on first try, 42 on second :) trying for more... Different solution for 42... |
| ||
aaargh, can't get past 40 :( |
| ||
I got 45!..... I GOT 45!!!!! But only in my dreams. :) No matter how many times I have tried, I cannot get past 41 |
| ||
Cool game, why is it so slow? |
| ||
What do you mean slow? |
| ||
When you click it takes a while for anything to appear, it's pig slow in fact. |
| ||
Runs just fine here even in debug mode which is what I use to run anyone else's code snippets. Just in case. And as a sidenote,just got figured out how to get 42 :) |
| ||
You should probably think of upgrading your computer if THIS game is too slow |
| ||
Its just that when I click it can take up to 5 seconds before the number appears, and I have a Mac G5 so I don't think its the computer. |
| ||
Cool game. I got 40 on my 1st try. |
| ||
"You should probably think of upgrading your computer if THIS game is too slow" LOL 29 on my second go... I'll have to keep working on it :) EDIT: Okay I'm happy- 42 on my third. |
| ||
Hi, nice game! I just wrote a program to solve it. I left it on for 20 minutes and it only got 41, but it checks every possible sequence so eventually it will solve it, if its possible. |
| ||
Hmm, a brute-force method might take a too long time. |
| ||
Game is slow because Grey forced it to 2 FPS :D Remove last 2 from graphics command and it will run just fine. |
| ||
haha didn't notice it, that would explain it |