GithubHelp home page GithubHelp logo

bymayanksingh / connect4 Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 26.0 14.87 MB

๐ŸŽฎ It is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column, user wins by forming row of four of same color

License: MIT License

Python 99.85% Shell 0.15%
board-game connect-four numpy pygame python

connect4's People

Contributors

agarwalshivani23 avatar ashiscs avatar bymayanksingh avatar cypre55 avatar deepsourcebot avatar komalkalyan avatar satvinder31415 avatar shardul555 avatar smithandrewl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

connect4's Issues

Implement Game AI.

Currently only two human users can play the game at once, design game AI for human vs computer experience, Use

  • Min Max Algorithm.

Modify readme to mention about game features.

make a new features section.

which lists all of the following:

  • two player game
  • supports undo operation
  • supports interactive game sounds
  • ability to play with computer AI (currently in development phase)
  • multiplayer on local network using sockets. (in development phase)
  • ability to customize game theme. (in development phase)
  • is cross platform Linux, Windows, Mac (in development phase)

Implement new game window

Window that can

  • act as an entry point for users to start the game
  • take names from player 1 and player 2
  • after the game is either over or the game draws, then this window will be shown and users can restart game from here itself. (thus solving issue #5 )

Bug in game:undo

There is some issue in the code of game:undo.
Test case: Upon starting the game,play 3 moves and then press Ctrl+Z twice. Firstly only one disc is removed when it should have been 2 and secondly the turn is of the wrong person.
This issue can be further exploited in lots of ways to make theoretically impossible game configurations.
connect4-e1

More than 2 players can play the game at once

More than 2 players can play the game at the same time with the same rules.In other words, the number of players is also generalized.For example, there may be 3 players red,blue and green each aiming to achieve 4 in a row on the same board.

Refactor Codebase.

  • Use OOP Principles.
  • Improve modularity.
  • Move all the game config in config.py
  • Follow DRY approach.
  • Write Comments by following PEP guide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.