Tried two games... The laser did not work if there was any (enemy) piece on the diagonal... So I could destroy any pieces with the laser.
Show HN: Laser, a new game played on a chess board
61–69 of 69 posts
Re: Show HN: Laser, a new game played on a chess board
#62It's currently running in a loop under the name "LASERFISH SHITTY CPU OPPONENT". It never joins your games - you have to click on it.
I also thought about making a puzzle opponent that would give you unusual FEN starting positions and nearly unlimited time, but I don't want to invent puzzles.
Does the game not send a gameOver packet when you win or lose by pawn move?
edit: I figured out why it can't find any moves and crashes. It can't find any of YOUR moves if it backs you into a corner and takes every single piece. With the crash fixed, it seems to be winning 2/3 of the time and drawing 1/3 (probably some stupid logic where it thinks lasering your king and their king and one pawn is a good tradeoff)
Re: Show HN: Laser, a new game played on a chess board
#63cool tho i guess
Re: Show HN: Laser, a new game played on a chess board
#64Hey everyone, this has gained way more attention than I thought it would, 250 people playing right now, wow! 1. Thanks to everyone finding bugs, I just fixed what I think was causing people to have clocks go to zero and games end unexpectedly. If I'm correct, this only should have happened during games when the previous game was won or lost due to the win conditions instead of running out of time. Let me know if you…
The game is perfectly playable as it is, and a lot of fun! Well done. You might want to create some discord or similar to make sure the community outlives the short-lived HN celebrity.
Re: Show HN: Laser, a new game played on a chess board
#65Re: Show HN: Laser, a new game played on a chess board
#66Re: Show HN: Laser, a new game played on a chess board
#67Earlier quoted context omitted.
The game is perfectly playable as it is, and a lot of fun! Well done. You might want to create some discord or similar to make sure the community outlives the short-lived HN celebrity.
Thanks! That's a good idea, I just made a discord server. Here it is for anyone interested: https://discord.gg/sB8sPMxTnV
Re: Show HN: Laser, a new game played on a chess board
#68I made a crappy bot for your game. It runs game tree search (no pruning) for 4 plies and picks the position with the most material advantage. It seems to beat me more effectively than most human opponents so far, though. What it lacks in long-term planning it makes up for in taking advantage of tactical errors. It's currently running in a loop under the name "LASERFISH SHITTY CPU OPPONENT". It never joins your games…