Skip to content

Python implementations of Stick Matches and Dots and Boxes, using Tkinter for the graphical interface. Includes optimized game logic, turn management, and an opponent with programmed strategies to enhance gameplay. - Artificial Inteligence Tecniques

Notifications You must be signed in to change notification settings

KPlanisphere/games-stick-matches-and-dots

Repository files navigation

Stick Matches and Dots Games

This repository contains two classic strategy games implemented in Python using the Tkinter library: Stick Matches and Timbiriche (Dots and Boxes). Each game includes interactive graphical interfaces and intelligent gameplay mechanics.


Games Overview

1. Stick Matches

In this game, players take turns removing sticks from a pile. The goal is to avoid being the player who takes the last stick. The computer opponent plays strategically to challenge the player.

Features:

  • Adjustable initial number of sticks.
  • Configurable maximum number of sticks per turn.
  • Interactive interface with clear turn-based gameplay.
  • Strategic AI opponent.

2. Timbiriche (Dots and Boxes)

A grid-based game where players take turns drawing lines between dots to form squares. Players score points by completing squares. The player with the most completed squares wins.

Features:

  • Dynamic grid size starting from 5x5.
  • Animated drawing of lines.
  • AI opponent capable of strategic moves.
  • Scoring system with color-coded squares.

Installation

  1. Clone the repository:

    git clone https://github.com/KPlanisphere/games-stick-matches-and-dots.git
    cd games-stick-matches-and-dots   ```
  2. Ensure Python 3.x is installed.

  3. Install Tkinter (if not already available):

    pip install tk   
  4. Run the desired game:

    python palillos.py # For Stick Matches 
    python timbiriche.py # For Timbiriche

About

Python implementations of Stick Matches and Dots and Boxes, using Tkinter for the graphical interface. Includes optimized game logic, turn management, and an opponent with programmed strategies to enhance gameplay. - Artificial Inteligence Tecniques

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages