Prime Planets by bazld
PRIME PLANETS is a maths/number puzzle game you play against the computer.
Maths gets harder as you run out of space...
Web build added (webgl) - or see windows download link below
https://goodreactions.com/prime-planets/
[Chrome/Opera/Firefox on Windows tested. iPad webgl doesn't work :( ]

The WebGL version is v1.01. This contains a bug fix that allowed the CPU to cheat :rolling_eyes:
(sorry, no time to add in-game instructions)
How to play
- There are 15 rounds. In each round, the player has a turn, then the PC.
- Each time, 3 random numbers are chosen.
- Your aim is to use these 3 numbers, together with the 4 mathematical operations (add, subtract, multiply, divide) to claim an unoccupied tile on the board.
- Click on the numbers, and the operators, to cycle through them, before hitting 'Submit'. There is no time limit.
- You must use all 3 numbers. If not, the game will ask you to check and try again.
- You cannot claim a tile already taken - you'll lose that turn.
Hitting 'ESC' will quit the game. You'll need this if running full-screen.
Scoring & Tips
- You score the number on the tile you claim. So, aim high (the CPU will!).
- Prime numbers are occupied by planets - these all score 50 points.
- A good tactic is to grab the low primes as soon as possible.
- Note: 1 is not considered a prime number since it has only 1 factor.
- The winner has the most points after 15 rounds.
Extra tips: BIDMAS
You may remember from your maths classes that operations follow BIDMAS rules, ie division and multiplication are performed before addition and subtraction (regardless of order). Brackets take overall priority, and you can use the brackets button if you wish. The CPU currently doesn't attempt to use brackets for it's answers.
Examples:
2 + 4 x 3 = 14 (multiplication is done before addition)
( 2 + 4 ) x 3 = 18 (brackets are always done first)
Note
THANK YOU for playing! I really enjoyed making this one, and will do a blog/post-mortem asap. The CPU AI was a right pain to code, the rest was fairly straightforward. I usually enter the Compo, but circumstances meant I coded on Sunday/Monday, so entered into the Jam. It did make it a bit easier getting some extra sfx and graphics [have opted out of those categories since I've mixed my own assets with those].
BUGS: I've fixed the main AI bug and uploaded v1.01. v1.0 is the original jam version with the bug left in. Play that to recreate a cheating opponent.
Disclaimer: yes, I'm a maths + computing teacher! :smile:
Ratings
| Overall | 298th | 3.667⭐ | 35🧑⚖️ |
| Fun | 429th | 3.391⭐ | 34🧑⚖️ |
| Innovation | 114th | 3.803⭐ | 35🧑⚖️ |
| Theme | 775th | 3.281⭐ | 34🧑⚖️ |
| Graphics | 617th | 3.42⭐ | 27🧑⚖️ |
| Audio | 528th | 3⭐ | 25🧑⚖️ |
| Humor | 887th | 1.833⭐ | 23🧑⚖️ |
| Mood | 698th | 3.017⭐ | 32🧑⚖️ |
| Given | 68🗳️ | 16🗨️ |
`BUGS: I’m sure I’ve seen the AI claim a tile that’s already taken, but can’t find bug yet. What a cheat!!`
I Encountered this, was a little frustrating, but its ludum dare so its forgivable :)
I have a list of things that could be added, I will add your suggestions.
Yeah, the game board is a little flat - doesn't need to be. And there isn't much on the ui to help the first-time player - agreed.
Oh, I've been playing more, and that damn bug needs fixing asap. The CPU also misses some valid chances, which is another bug since the code tests **all** possible combinations! (there aren't many, 4 x 4 operations, then 6 ways to arrange the numbers). Ugh.
Will check out your game, of course :thumbsup:
A clever game, but to me it feels like it might do better as an actual board game. It just strikes me as more enjoyable with friends than against an AI (though maybe with a timer, then).
I found the layout of the numbers frustrating. I would have preferred them laid out left to right. It took until turn 9 to figure out that they were laid out in a spiral shape rather than somewhat randomly.
Overall, I give this a solid out of 10.

ps. I made a maths game last ludum dare, feel free to check it out!
@frittatenbank the planets are on the prime numbers. They all score 50, so best tactic is to grab them (before the AI does).
@mdiyo probably, yes. There was no need for the spiral. Correct...
cheers @chaosthelegend . I'm biased, love maths and computing (college+ adult ed teacher).
@psiv thanks, not spotted that one. I have a function to check use of all 3 numbers, its clearly rubbish... :sob:
No more AI cheating :smirk_cat: . Let me know if I've introduced any new bugs in the process.
Calling it V1.01, was a 1-line bug - AI checking the wrong tile!
Left the v1.0 downloads here, in the spirit of game jam bugginess.
So the mechanics is finally pretty simple and that's still a nice game.
I guess making the AI was a big deal to you.
If you're going to improve it I'd be curious keeping an eye on it
The user interface, graphics and visual theme are all well done and doesn't distract from the puzzling.
Personally I didn't find it very challenging, it wasn't hard to beat the computer because I had plenty of time to crunch the numbers and work out the best response, maybe if there was a time limit on each turn it might help.
Thanks for the fun. Well done dude^^
@weine well spotted. as you might guess, quite a few maths games use the idea of forming numbers like this. It does allow players to work at their own level.
@newokmyne yes, I must add instructions, that is very lacking, agreed :/
@dmtroy yeah, was a bit wary of rushing the player into an answer, though that would be the normal thing to do in game like this. With easy/regular/hard modes I'd add that.
I have a long list of entries still to play. Played about 60.