News for hackers. Stuff that matters.

Ask HN: Can someone recommend a game for a programming competition?

I'm going to make a competition for my company's developers so that we can explore other problem domains with programming. I'm thinking about something simple, where one can make a playable AI without too much effort. Can anyone recommend such game? Can you also recommend a server software to host this competition?
( 13 comments | 6 points | on HN )
Re:Ask HN: Can someone recommend a game for a programming co... by jewel on Monday December 28, 2020 @01:01PM (#25561401)
Any two player game will work, tic-tac-toe, fences, checkers, tetris. I particularly enjoyed a programming competition that involved a real time tank battle, like "combat" on the atari.

Any game that's grid based with a fixed number of states works well, either turn-based or real time.

You can do a double elimination bracket like a sports tournament, and can be done on a spreadsheet or whiteboard.

For more than two players at once, you could try snake, hearts, or poker.

Re:Ask HN: Can someone recommend a game for a programming co... by gradschool on Monday December 28, 2020 @01:17PM (#25561531)
Othello is a good game for that. It has a small following of players around the world. It's just complicated enough to be strategically interesting but simple enough for a decent programmer to implement something that outperforms a human player.
Re:Ask HN: Can someone recommend a game for a programming co... by davidhbolton on Monday December 28, 2020 @05:04PM (#25563782)
Back when I did my GCSE (mid schools exams) in 1977, I programmed a very simple tennis game that I read about in a UK games magazine sometime in 1974.

A 2 player game, the court is divided into 12 spaces (6 either side of the net). The serving player rolls two dice and moves the ball that many spaces. So 12 is out, anything below 6 hits the net.

Following a successful serve the opposing player gets to choose whether to roll one or two dice. Other than that its normal tennis rules. It's mostly luck with the main skill deciding whether to roll one or two dice.

Or how about Rock, Scissors and Paper?

Re:Ask HN: Can someone recommend a game for a programming co... by orange_tee on Monday December 28, 2020 @11:33AM (#25560521)
The AI challenges from a decade ago where pretty fun and practically exactly suited to your needs.

https://en.wikipedia.org/wiki/AI_Challenge http://ants.aichallenge.org/

Despite the name I don't remember ML featuring prominently in the solutions.

Re:Ask HN: Can someone recommend a game for a programming co... by cbanek on Friday January 01, 2021 @02:48AM (#25601589)
Stratego is a fun game and easy to program but allows for a lot of different strategies.

https://en.wikipedia.org/wiki/Stratego

Re:Ask HN: Can someone recommend a game for a programming co... by mleonard on Monday December 28, 2020 @10:25AM (#25559870)
Re:Ask HN: Can someone recommend a game for a programming co... by haolez on Monday December 28, 2020 @10:04PM (#25566290)
This looks like a very mature option. Will probably use this one.
Re:Ask HN: Can someone recommend a game for a programming co... by bmitch2112 on Monday December 28, 2020 @09:01PM (#25565838)
Check out https://play.battlesnake.com/

Can quickly spin up a Snake using an AWS lambda. It can be a lot of fun.

Re:Ask HN: Can someone recommend a game for a programming co... by rithmAlgo on Monday December 28, 2020 @01:26PM (#25561642)
I'm also interested in this, or any kind of data analysis or 'AI' challenge that isn't kaggle, kind of like competitive programming but for AI
Re:Ask HN: Can someone recommend a game for a programming co... by t-writescode on Monday December 28, 2020 @02:39PM (#25562442)
Is RoboCode still around? That’s the game I played in class about 17 years ago that would fit the Bill.
Re:Ask HN: Can someone recommend a game for a programming co... by QuadmasterXLII on Monday December 28, 2020 @03:02PM (#25562637)
Codingame runs top notch game ai competitions, they might have a plug and play solution for you
Re:Ask HN: Can someone recommend a game for a programming co... by ketanmaheshwari on Monday December 28, 2020 @10:42AM (#25560016)
sudoku and 2048 comes to mind.
Re:Ask HN: Can someone recommend a game for a programming co... by young_unixer on Monday December 28, 2020 @01:24PM (#25561607)
Pac-Man?