Release

Connections

4

was8bit 2022-02-01 02:48 (Edited)

Use (A) or (B) to draw a line above or to the left of your cursor... the more squares you complete, the higher your scores, up to 100 points for the biggest block...


It took me 2 weeks to figure out how to get this to work....

Connections.nx | Open in app
2022-02-01 02:48

McPepic 2022-02-01 19:01

Cool game! The AI spends most of its time blocking the spot of every board that you want to expand. Is there an ending condition for the game? It does seem like the computer doesn’t really try to expand as much as it blocks where you want to go. Well done though!


was8bit 2022-02-01 20:08

Thanks :)

Yea, i was sooo frustrated, i couldnt easily get my idea put into code... it took me several different attempts until i came upon this one, which was barely workable...

I kinda just posted a working version... it does need polished up... as you mentioned, better AI for computer player, a real time scoreboard, and also end-of-game detection...

Actually, currently the computer simply moves randomly and randonly tries to play, and repeats this until it can play.... a better AI would probably have 2 play on itself modes, and 1 block opponent mode... and just randomly cycle thru these modes...


was8bit 2022-02-03 07:22

Having troubles...


Log in to reply.