Giter VIP home page Giter VIP logo

connect-four's Introduction

Connect-Four

This is a 3D clone of the two-player connection board game, Connect Four, created in the Unity Engine scripted in C#. The key features this game has to offer is online multiplayer and an AI that gets progressively harder each time you beat it.

The players choose a color and then take turns dropping colored discs into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs. The first player can always win by playing the right moves.

For optimization purposes, this game was designed under an event-driven architecture where no code is run in an Update() function. So instead, only coroutines and C# delegates are used for example for input detection and moving the objects around.

Demonstrations

Online Game

Single Player Mode w/ AI

Installation

  1. Download & extract the ZIP file
  2. Open the extracted folder
  3. Go to the Builds folder
  • Windows - Click Connect4.exe
  • Android - Put Connect4.apk to Android phone

How to Play

  1. Open the application on whichever operating system you are running on
  2. Select Local Game button to play against the AI
  3. Select Quick Game button to play against a random player on a different device (MUST ENTER IN USERNAME)
  4. Select the black disc or white disc
  5. Press Play Button
  • Press Reset Button to play another round of Connect-4 after game has finished
  • Press Back Button to go back to start menu

Controls

Instruction Touch Controls
Move Disc to the Left Swipe Left
Move Disc to the Right Swipe Right
Drop Disc Swipe Down
  • On Windows, swipe controls are activated by holding the left mouse button

Credits

I created all of the 3D models in Blender (Black Disc, White Disc, & Game Board), including the pictures for the black & white disc. The other 2D assets were from the asset store.

connect-four's People

Contributors

jaydiddythagoat avatar

Watchers

 avatar  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.