Giter Site home page Giter Site logo

fiveinrow's Introduction

Five In a Row

It is a simple board game which is quite popular in Asia. You can think of it as an advanced version of Tick-tack-toe. As name says, you have to set 5 stones in row in 15x15 board. It only takes a few minutes to finish and is really fun! If you want to know more about it, visit https://en.wikipedia.org/wiki/Gomoku

#Background Originally, I was making an AI for Five In a Row using JavaApplet. My goal was to make a strongest AI I can come up with, and post it to my website as a personal project. However, I soon realized that people stopped using JavaApplet on webpages, and instead, they started to use Canvas to draw images. Therefore, I decided to convert the codes to JavaScript and draw image on Canvas.

#Goal My primarily goal for this personal project is to learn how to use GitHub. I have never used it before but I have seen it in many places, and I thought it would be a good opportunity to learn the basics feature of it.

Contents

I included every file needed to run this page, which includes the pictures of stone and css file. You can see how it looks like by go to the like below. URL: http://thehomepage.sitemix.jp/

#How to play To play against my AI, simply select the AI level and click on the board to set a stone. You can hit "Human vs CPU 1," to toggle the side. You can play against your friend, or you can see CPUs playing against each other. You can hit "CPU 2 level:" to toggle the CPUs as well.

There are some other festures you can use with keyboard...
ESC...Clears the board
K.....Shows the order of stones
S.....Shows the score on tile
Z.....Saves the board
A.....Loads the board

Enjoy!

fiveinrow's People

Contributors

raykaito avatar kaduki avatar

Watchers

James Cloos avatar  avatar

fiveinrow's Issues

Finish README

ahhhh, I don't want to write it~
someone do it for me~

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.