Most active commenters
  • freetonik(12)
  • em-bee(5)

146 points freetonik | 59 comments | | HN request time: 1.109s | source | bottom
1. freetonik ◴[] No.43517634[source]
Wrote a blog post about making the game: https://rakhim.exotext.com/knight-ride-a-game-about-rogue-ch...
2. nosioptar ◴[] No.43538970[source]
I can't scroll on Firefox mobile, moves and anything below are not visible. I can't tell if I have limited moves (if so, would prefer an option to get unlimited) or if it's just counting my moves.

I wish I could kill the sound.

Otherwise, everything seems to work.

3. snarf21 ◴[] No.43539014[source]
Is there a help screen with the rules or am I missing how to trigger it?
replies(1): >>43539353 #
4. ◴[] No.43539026[source]
5. fallinditch ◴[] No.43539034[source]
Nice job, it's fun. Thank you :-)
6. parsimo2010 ◴[] No.43539315[source]
This was fun. I played for a few minutes and like how there seem to be multiple ways to play the game-

1. just get through the level and not worry about losing points

2. get through the level without losing any points but not worrying about clearing all the pieces

3. absolute perfection where you clear all the pieces without losing any points

This flexibility makes it good for serious players but also kids/casual players. Great job!

replies(2): >>43541421 #>>43544220 #
7. wonderwonder ◴[] No.43539353[source]
Just click on the square where you want the knight to move. Has to be a legal move from the current position. Took me a bit as well
8. wonderwonder ◴[] No.43539358[source]
Fun, nice job
9. yubiox ◴[] No.43539734[source]
4872 first game. I got all the pieces on every level except the first because I didn't realize you could. Pretty fun and I don't even play chess. Are the levels designed by hand or generated?
replies(3): >>43540632 #>>43541168 #>>43543883 #
10. Eric_WVGG ◴[] No.43539848[source]
You’re standing in notable footsteps, one of Alexei Pajitnov’s follow-ups to Tetris was a similar game. https://en.wikipedia.org/wiki/Knight_Move
replies(1): >>43543876 #
11. dylan604 ◴[] No.43540380[source]
Way back when Flash was a thing, one of the teachers at my kiddo's school started a chess club. They never played a full game of chess, but other games that taught the kids how to move the pieces and not burden them with the strategy of a full game. I decided to try to turn a few of those into Flash based games. It was fun making each of the pieces with the rules limiting their movement which became a game on its own just to show where pieces could go or not. Then adding more pieces to start playing the games. I never worked it up to the point of having player vs computer though. Glad to see other people also thinking chess based games could be made without needing a vs computer as well.

I think this game would be perfect for a young kids chess club. Nice job!

12. roskelld ◴[] No.43540536[source]
I picked up chess a few weeks ago after having a lift time of never getting around to learning it. This is great fun and I'm getting to use my newly found skill set of knowing horses move in L shapes.

EDIT: Just scraped through level 9 with zero moves left. Felt tense.

replies(1): >>43542023 #
13. vikingerik ◴[] No.43540632[source]
They must be generated. Hand designed levels probably wouldn't have things like pawns on the first rank, or four opposing rooks, or situations where the first move unavoidably loses points.
replies(1): >>43551866 #
14. gjm11 ◴[] No.43540949[source]
This could use a bit more explanation. For instance:

How many points and how many bonus moves do you get for a capture? Does it depend on what you capture? (It looks like it's one bonus move whatever you capture, but more points for more valuable pieces; 1 for a pawn, 3 for a bishop, so I'll guess it's 5 for a rook and 9 for a queen.)

Does "Beware of attackers!" mean (1) you aren't allowed to move the knight to a square that's attached, (2) you will get some points deducted when you do, or (3) nothing, it's just flavour-text? (It looks like it's #2, a loss of one point each time you move to a square that's attacked.)

The instructions don't mention the "clean board" bonus; I think they should.

I'd write it something like this:

Complete each level by reaching the target within the given number of moves.

Each piece you capture gives you one more move, and points according to the value of the piece.

You lose one point any time you move to a square that's attacked.

Your score for the level is the number of moves you had spare at the end, times the number of points you earned. Double if you captured all the pieces!

(... Except that it looks as if there's some further "streak" mechanic, which I haven't tried to figure out the details of.)

If that's too long, put it behind a clicky-button, and just say "Get your knight to the target square. Earn points for getting there quickly without being attacked, and capturing pieces on the way." plus a button labelled something like "Full rules".

Maybe make the notification when you capture a piece say something like "+3 points / +1 move"?

If the levels get fairly crowded then it might be expensive to get the computer to find the best possible score, but it shouldn't be hard to make it find a pretty good score. You could present that, either at the start or after the user finishes the level, as a target, and congratulate them when they meet or even beat it.

replies(1): >>43543803 #
15. russian_bot ◴[] No.43541168[source]
4872 is really good, u should play chess
16. nebulaninja_27 ◴[] No.43541171[source]
really cool stuff. I think you should have a bigger penalty for when the knight moves to a spot that can be taken by another piece.
replies(1): >>43544818 #
17. berbec ◴[] No.43541207[source]
Wonderfully fun game, but I really wish there was a way to save progress instead of starting over again and again.
replies(1): >>43543903 #
18. bobbiechen ◴[] No.43541288[source]
Great game, I enjoyed it! Reminds me of echo chess, using the chess pieces for movement means it's really easy to pick up.

I noticed a potential bug (Firefox on Android) - I can pick up extra points by capturing, capturing again, then quickly moving back to the first capture square. I get the points as if it was another capture, even though there is no piece there anymore.

Edit: actually, I can quickly move back and forth for infinite points (and combo)

replies(1): >>43543898 #
19. em-bee ◴[] No.43541421[source]
there is more. the number of moves left at the end is a multiplier for your points, so try to get through the level with a minimum number of moves while maximizing points by capturing high value pieces and also find streaks where you capture multiple pieces in a row.

i love looking at a board and try to figure out the best order of moves to get the most points.

not that i am very good at it, but it's fun and addictive.

20. Lerc ◴[] No.43541515[source]
Playing on my phone. Got to just under 12,000 before I got a txt and when I went back to the game it had restarted.

Two things that would be nice. Show the optimal score possible for any level, with a single puzzle mode (maybe puzzle of the day) to replay to try and achieve the best score on a single level.

A more significant penalty for moving into unsafe squares. Perhaps losing moves rather than points. An increasing penalty for second and third hit might mitigate the just blunder your way through approach.

I felt like I was in no danger of losing, but if it had a strongger penalty for being hit I think I would hit a limit in a reasonable amount of time.

replies(1): >>43543821 #
21. cassepipe ◴[] No.43541525[source]
I don't know how to move a piece, does not work neither on firefox nor chromium.
replies(1): >>43542007 #
22. BiraIgnacio ◴[] No.43541717[source]
thanks, this is fun!
23. nomilk ◴[] No.43541886[source]
I just played for a few minutes and loved it. Chess variants can sometimes take too long to understand the rules so this was great (excellent ux). I think I'd have liked it a bit more if you get captured (lose and restart) when you move on a square that's being attacked (rather than losing a point).

I also enjoyed how it got a bit harder as the levels went on. And also how a stray pawn/piece might act as a hint (i.e. to capture on that square) - a bit like how side scrolling and adventure games might leave a trail of rings/bananas/collectables to guide the player along a desired path where it otherwise may not be obvious.

24. ◴[] No.43541923[source]
25. sionisrecur ◴[] No.43541957[source]
Very nice. I think it would be more fun/challenging if you were unable to move to a position where an opponent piece can take your knight. Also some explanation would be nice, at first I thought I had to avoid other pieces and reach the end in the least amount of moves.
replies(1): >>43544795 #
26. mdaniel ◴[] No.43542007[source]
I was just able to play it on FF and the answer is to click on the target square (no drag-drop, and there's no indicators)
27. mdaniel ◴[] No.43542023[source]
Welcome to the journey!

If you haven't seen it yet, lichess.org has a bunch of fun content

https://lichess.org/practice

https://lichess.org/training (it's labeled "Puzzles" in the UI; there's a difficulty picker hidden in the bottom left of the page)

They have mobile apps, too, although regrettably not all content is available on the app for some horrible reason

28. rco8786 ◴[] No.43542197[source]
Took me a sec to figure it out but very fun. Played 23 levels or so.
29. BrenBarn ◴[] No.43542589[source]
It's a cool game! A couple potential improvements:

1) Provide a "level selector" or way to replay already-played levels 2) Provide a way to restart current level 3) Explain the scoring more fully

replies(1): >>43543892 #
30. 2muchcoffeeman ◴[] No.43542671[source]
This is pretty fun, but once I saw how to look at the puzzle got fairly easy.
31. tobyhinloopen ◴[] No.43543380[source]
I have no clue what I'm supposed to do, am I stupid?
replies(2): >>43543598 #>>43544084 #
32. cognomano ◴[] No.43543598[source]
Only white moves. Eat black. Go to green dot.
33. freetonik ◴[] No.43543803[source]
Thanks a lot! I've used your latter suggestion and added a "full rules" section. And will work on better notifications later.
replies(1): >>43544910 #
34. freetonik ◴[] No.43543821[source]
>I went back to the game it had restarted

Oh no! Your browser probably decided to clean up the RAM or something. I'm not sure if there's a way for the page to "ask" the platform not to clean it, perhaps I could simulate user input. Will research this later.

Puzzle of the day and increasing penalty are great suggestion, thanks!

replies(1): >>43543918 #
35. freetonik ◴[] No.43543876[source]
Whoa, didn't know this. Gonna try to find a copy of that game.
36. freetonik ◴[] No.43543883[source]
Levels are generated randomly. The number of black pieces grows until level 10, then randomly fluctuates.
37. freetonik ◴[] No.43543892[source]
Thanks!

1) Gotta think how to do this, since the levels are randomly generated. Perhaps go with the custom seed like they do in some games...

2) Great suggestion, gonna do it soon.

3) Added "full rules" section to the intro screen.

38. freetonik ◴[] No.43543898[source]
Huh, interesting. I guess it's because I remove pieces from the board with some timeout. Will fix.
39. freetonik ◴[] No.43543903[source]
Well, it's a rogue-like ¯\_(ツ)_/¯ But seriously, yeah, I'll try to work on that.
replies(1): >>43552851 #
40. Lerc ◴[] No.43543918{3}[source]
Storing the state between levels (just score and level number?) in local storage would do the trick. Erase the state at game over. If the page launches with a state in local storage you know a game didn't finish and can resume from the start of the most recent level
replies(1): >>43543984 #
41. freetonik ◴[] No.43543984{4}[source]
Ah. I was thinking how to actually save all previous levels, but that is not needed, just the level number is needed, you're right.
42. pithanyChan ◴[] No.43544084[source]
welcome to life. stay calm & use only as much energy for work as necesary, use what's left for fun.

whenever given, read instructions carefully.

capture as many capturables as possible. get to the light at the end last.

PS: it's a knight and can only move like that one hockey club shaped Tetris block

replies(1): >>43544404 #
43. pithanyChan ◴[] No.43544089[source]
this is cool. reminds me of Hoplite for no reason at all.
44. michaelmior ◴[] No.43544220[source]
Unfortunately sometimes it's impossible not to lose any points because all of the initial squares you can move to are under attack.
replies(1): >>43550656 #
45. tobyhinloopen ◴[] No.43544404{3}[source]
Thank you for your valuable life advice! I figured it out
46. em-bee ◴[] No.43544795[source]
that would be interesting. although i had boards were all possible starting moves were like that. can happen when the knight starts at the edge or in a corner where less moves are possible. it would require to test each board for that situation and discard it and generate a new one.
47. em-bee ◴[] No.43544818[source]
the penalty could be relative to the value of the piece
replies(1): >>43544925 #
48. em-bee ◴[] No.43544910{3}[source]
a few more ideas:

* jumping onto a field under attack sends the knight to a random new location instead of deducting points

* configurable board size with the number of black pieces adjusted. the classic 8x8 board with 16 black pieces could be one preconfigured choice

* multiple white knights.

* a random black piece moves after each jump of the white knight

49. freetonik ◴[] No.43544925{3}[source]
I made it like that in the beginning (and wrote about it and other decisions in a blog post[1]), but felt it was too punishing. Maybe I could punish with 1/2 of the piece value.

[1]. https://rakhim.exotext.com/knight-ride-a-game-about-rogue-ch...

replies(1): >>43545046 #
50. em-bee ◴[] No.43545046{4}[source]
or a third even. 3 point penalty for the queen.
51. 4ndrewl ◴[] No.43548365[source]
This is great, but I thought the jump from level 2 to level 3 was a little steep.
52. parsimo2010 ◴[] No.43550656{3}[source]
You're right, I guess I should reword it to "not lose any unnecessary points." I remember a level like that with a queen in just the right spot that any legal move was attacked, but moving left/right changed your options for later moves.
53. ffsm8 ◴[] No.43551015[source]
I kept getting confused why I'm not getting any points. You really should give the other units the other color (black), o thought they were there too effectively block the spaces, not to be able to capture them for points.
54. HenryBemis ◴[] No.43551866{3}[source]
I had a similar thought, randomly generated in 'strength'/points and positions. Pawns on first row are impossible, and last row turn to Queens (or whatever).

There must be a 'relative position' though in the mix of the algorithm, because on some levels the pieces are scattered in the four corners and some others they are on 'perfect-knight-stepping-sequence' so I could take 5-6 pieces in 5-6 moves and then exit.

55. berbec ◴[] No.43552851{3}[source]
maybe a way to skip ahead to the harder levels? it's not that I mind the randomness at all, it's just i'd like to start at something tougher than "1 pawn".

Love the game a lot!

56. CaesarA ◴[] No.43553469[source]
This game is great. I played it for quite a few minutes. It reminds a lot of one the games that the inventor of Tetris designed for the Famicom. I can't remember the name of it at the moment.
replies(1): >>43553837 #
57. freetonik ◴[] No.43553837[source]
Thank you! Someone else in the comments also found it similar, and linked to the game you're remembering: https://en.wikipedia.org/wiki/Knight_Move
replies(1): >>43553875 #
58. CaesarA ◴[] No.43553875{3}[source]
That's the one I was thinking of, thanks.