Coder Social home page Coder Social logo

connect-4's Introduction

Connect Four Game

Welcome to the Connect Four game implementation in C++!

Introduction

Connect Four is a two-player connection game in which the players take turns by slecting column occupying the lowest available space within the column. The object of the game is to connect four of one's own symbol vertically, horizontally, or diagonally before your opponent.

How to Play

  1. Run the program.

  2. Choose an option from the main menu:

    • Play: Start a new game.
    • Exit: Quit the game.
    • Credits: View credits.
    • Instructions: Learn how to play.
    • Record: View game records.
  3. If you choose to play:

  4. Players take turns dropping by selecting one of seven columns into a 6x7 Board.

  5. The goal is to connect four 'X' or 'O' in a Board.

  6. Connections can be horizontal, vertical, or diagonal.

  7. The first to achieve this wins, or it's a draw if the Board is full.

Features

  • Two-player turn-based gameplay.
  • Toss to determine the starting player.
  • Keep track of scores for Player 1 and Player 2.
  • Record and view game results.
  • Simple console-based user interface.

Game Files

  • main.cpp: The main C++ source code.
  • Scores.txt: File to store game records.

Usage

Compile and run the ConnectFour.cpp file using a C++ compiler.

g++ main.cpp -o main
./main

Additional Information

  • This game was created as a collaborative project by Usman Dilbar and Ajmal Razaq.
  • For more information, check the game credits and instructions within the program.

Credits

Game made by:

  • Usman Dilbar
  • Ajmal Razaq

Feel free to customize and expand this README to include more details about the game, how to compile/run it, or any additional features you'd like to highlight.

connect-4's People

Contributors

theajmalrazaq avatar

Watchers

 avatar

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.