Coder Social home page Coder Social logo

morpioncore's Introduction

MorpionCore

Morpion Game Core - challenge client IA This project has created for learn to code for dev student.

What it is ?

This application is the simple core morpion game.

How to play ?

For play, each student must to coding client player. The client player must take the map via main parameters and return playing position.

  • The return of core is json
  • This json contain the actual map of game
  • Example of map where player one named 1 and player two named 2. The pawn - is the empty place.
1  -  2

2  -  - 

1  1  -
  • Example of return json by the core game:

[["1","-","2"],["2","-","-"],["1","1","-"]]

  • Each position of map have a number, that the player may return for play
*** *** ***
* 0  1  2 *
* 3  4  5 *
* 6  7  8 *
*** *** ***

Game Rules

For a win, you have 04 combinaisons,

ONE

  *** *** ***
  * 1  -  - *
  * -  1  - *
  * -  -  1 *
  *** *** ***

TWO

  *** *** ***
  * -  -  - *
  * 1  1  1 *
  * -  -  - *
  *** *** ***

THREE

  *** *** ***
  * -  -  1 *
  * -  1  - *
  * 1  -  - *
  *** *** ***

FOURTH

  *** *** ***
  * -  1  - *
  * -  1  - *
  * -  1  - *
  *** *** ***

How to use it ?

In this version, the core launch the scala client player; Why ? because my students coding in scala language.

You can modify this code easily.

Launch

java -jar name_of_core.jar name_of_client_one name_of_client_two

Client Player

the core send in parameters, the actual map of game in json. the client must return the playing number position.

Contributing

My bad english ;)

Hotep!

morpioncore's People

Contributors

ryankarl65 avatar

Stargazers

 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.