hp
toc

Jonnect Jour

2015-08-15, post № 55

games, programming, Pygame, Python, #4, #connect, #connecting, #detection, #four, #four in a row, #game, #IV, #mouse control, #red, #win, #win detection, #yellow

After having programmed Jic-Jac-Joe — where you need to connect three pieces —, I now programmed Connect Four (four pieces).
This version — although it does not have a computer player — includes win detection.

Controls

  • Left-clicking puts your piece where the mouse cursor is positioned,
  • ‘Escape’ restarts the game.
jonnect-jour-1.png
jonnect-jour-3.png
jonnect-jour-5.png
Source code: jonnect-jour.py
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST