GithubHelp home page GithubHelp logo

connect4onrails's Introduction

A simple Connect 4 game on Rails

Currently can be played

  • In console rails game:human_vs_human
  • In Rails console Board.play_in_console
  • In Web

Ruby version

2.4.2

Rails Version

5.1.5

Setup

After checking out project, Run :

Bundle

rails db:migrate

Project Guidelines

  • Level 1: Build a playable game of Connect 4 with 2 players, a command line interface being fine. Should have player moves, win detection logic, tie detection, etc.
  • Level 2: Implement a standard โ€œAIโ€ for the computer player. A standard computer opponent should block a human from winning when able to, but plays more ad hoc and does not operate with an advanced strategy.
  • Level 3: Make it playable online (Heroku or similar) with a SPA web interface, games persisting to a database, etc.

Levels 1 and 3 done, but no AI yet.

Still to do

Include a simple AI to play Human Vs. Computer

Inspired by:

Tic Tac Toe on Rails

Connect Four on Rails

connect4onrails's People

Contributors

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