Need help with c4?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

kenrick95
142 Stars 43 Forks MIT License 123 Commits 1 Opened issues

Description

🔴🔵 Connect Four game in JS + Canvas

Services available

!
?

Need anything else?

Contributors list

c4

Test

c4, stands for Connect Four, is a browser game written in TypeScript and utilizes HTML's

canvas
. Player is playing against an AI that uses Minimax algorithm and alpha-beta pruning. The evaluation function is hard-coded, and hence the AI may not be moving using the most optimal move.

Play

Gameplay

Objective

Connect four of your game pieces vertically, horizontally, or diagonally before the other player do so.

How to move?

At each turn, player will drop a game piece in one of the seven columns by clicking on the chosen column.

More info

Read Wikipedia page on Connect Four

Browser compatibility

  • Should be good in latest Firefox, Edge, Chrome, Opera, Safari, and IE.

Contributing

Contributions are welcome! I'm happy to accept any kind of contributions, pull requests, or bug reports.

Developing

  1. Fork and clone this repository
  2. Install dependencies
    yarn install
    
  3. Start local development server
    yarn start
    
  4. Make your changes at either
    browser/
    ,
    core/
    , or
    server/
  5. Test it out at http://localhost:1234/
  6. After you are happy with your changes, please submit your Pull Request!

License

This work is licensed under MIT License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.