Coder Social home page Coder Social logo

ggattoni / tablutcompetition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from federico-terzi/tablutcompetition

0.0 0.0 0.0 526 KB

Software for the Tablut Students Competition

License: BSD 3-Clause "New" or "Revised" License

HTML 72.37% JavaScript 0.12% CSS 1.89% Java 25.61%

tablutcompetition's Introduction

TablutCompetition

Software for the Tablut Students Competition

Installazione su Ubuntu/Debian

Queste sono le istruzioni per installare le librerie necessarie su ambiente ubuntu/debian:

Da terminale, eseguire i seguenti comandi per installare JDK 8 e ANT.

sudo apt update
sudo apt install openjdk-8-jdk -y
sudo apt install ant -y

A questo punto, bisogna clonare la repository del progetto.

git clone https://github.com/AGalassi/TablutCompetition.git

Eseguire il Server senza utilizzare Eclipse

Il metodo piu' comodo per eseguire il server consiste nell'utilizzare lo script di configurazione ANT da terminale. In particolare:

# Entrare nella cartella del progetto
cd TablutCompetition/Tablut

Un modo per capire se si e' nella cartella giusta e' verificare che sia presente il file build.xml

A questo punto, per compilare il progetto:

ant clean
ant compile

Il progetto e' stato compilato nella cartella build. Per lanciare il server si puo' utilizzare il comando:

ant server

Per provarne il funzionamento, si possono attivare i due giocatori Random:

# Da altre due finestre di terminale
ant randomwhite

# E nell'altra
ant randomblack

A questo punto, si dovrebbe aprire una finestra che mostra graficamente lo stato della partita.

Giocare una partita

Il primo passo e' avviare il server:

ant server

A questo punto, in due terminali differenti, si possono avviare i giocatori. Questi possono essere di due tipi:

  • Random
  • Human

Il giocatore di tipo random giochera' la partita effettuando delle mosse casuali, mentre il giocatore human fornisce un'interfaccia da terminale che permette di muovere manualmente le pedine.

L'unica cosa importante, e' avviare un giocatore di tipo nero ed uno di tipo bianco.

Esempi:

Partita tra due esseri umani

In due terminali diversi, utilizzare i comandi:

ant humanwhite

ant humanblack

Partita tra un essere umano ed un giocatore random

In due terminali distinti:

ant humanblack

ant randomwhite

tablutcompetition's People

Contributors

agalassi avatar federico-terzi avatar ggattoni 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.