Coder Social home page Coder Social logo

ghost-8d / connect_dots_game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38 KB

This is a small game implemented in java, where two players can play the connect the dots game. There is no AI behind this game so two players are required to play this game.

License: MIT License

Java 100.00%

connect_dots_game's Introduction

connect_dots_game

This is a small game implemented in java, where two players can play the connect the dots game. There is no AI behind this game so two players are required to play this game.

Requirements

  • javac >= 11.0.2

Usage

To compile the java file use:

cd connect_dots_game
javac Dots.java

To run the program use:

java Dots

How to play

The game is very simple:

  • The player clicks between two dots to draw a line.
  • When the player hovers over a valid move a line is displayed with the current player's color.
  • When a player completes a square box (places the last line to form the box) the box will be colored with the player's color (green or red) and the player receives one point. In addition, the player who scores a point gets an extra move and can chain multiple moves as long as he/she keeps completing boxes.
  • The game finishes when there are no more lines to draw and the player with the most points is the winner.

User Interface

This is an example of the game's User Interface (UI):

connect_dots_game's People

Contributors

ghost-8d 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.