Skip to content

eliottcoint/Puissance_N

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puissance N

Overview

Puissance N is an enhanced version of the classic Connect 4 game, implemented in Python. The game allows for a customizable grid size and the number of consecutive discs required to win, making it a more flexible and challenging version of the traditional game. This project was developed as part of an academic assignment.

Features

  • Customizable Grid Size: Players can define the size of the grid, allowing for a variety of gameplay experiences.
  • Customizable Win Condition: The game allows players to set the number of consecutive discs required to win (N), making the game more challenging and adaptable.
  • Multiplayer Mode: Two players can compete against each other, alternating turns to place their discs on the grid.
  • Interactive Command-Line Interface: The game runs in the terminal, with a user-friendly interface for placing discs and checking the game state.

Technologies Used

  • Python: Core programming language used to develop the game.
  • Command-Line Interface: Simple text-based interface for interacting with the game.

Installation and Usage

  1. Clone the Repository:

    • Open your terminal and run:
    git clone https://github.com/eliottcoint/Puissance_N.git
    • Navigate to the project directory:
    cd Puissance_N
  2. Run the Game:

    • Ensure you have Python installed on your system.
    • Run the game by executing the following command in your terminal:
    python puissance_n.py
    • Follow the on-screen instructions to set up the grid and win conditions, then start playing.

Game Instructions

  • Objective: Align N discs consecutively either horizontally, vertically, or diagonally to win the game.
  • Controls: Players take turns entering the column number where they want to drop their disc.
  • Winning the Game: The first player to align the set number of consecutive discs wins the game.

Customization

  • Grid Size: You can set the grid to any size (e.g., 6x7, 8x8, etc.).
  • Win Condition (N): Define how many discs in a row are needed to win (e.g., 4, 5, or more).

Contributing

Contributions are welcome! If you have ideas for new features or improvements, feel free to fork the repository and submit a pull request.

License

This project is open-source and available under the MIT License.

Contact

For any questions, suggestions, or feedback, feel free to reach out via my GitHub profile.

About

School Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors