-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from Part-Time-Team/dev
Final release
- Loading branch information
Showing
135 changed files
with
2,175 additions
and
1,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,46 @@ | ||
# Scalavelli project | ||
|
||
### Build status | ||
| Branch | Status | | ||
| --- | --- | | ||
| Master | [![Build Status](https://travis-ci.com/Part-Time-Team/scalavelli.svg?branch=master)](https://travis-ci.com/Part-Time-Team/scalavelli) | | ||
| Dev | [![Build Status](https://travis-ci.com/Part-Time-Team/scalavelli.svg?branch=dev)](https://travis-ci.com/Part-Time-Team/scalavelli) | | ||
|
||
### Coverage status | ||
| Branch | Status | | ||
| --- | --- | | ||
| Master | [![codecov](https://codecov.io/gh/Part-Time-Team/scalavelli/branch/master/graph/badge.svg)](https://codecov.io/gh/Part-Time-Team/scalavelli) | | ||
| Dev | [![codecov](https://codecov.io/gh/Part-Time-Team/scalavelli/branch/dev/graph/badge.svg)](https://codecov.io/gh/Part-Time-Team/scalavelli) | | ||
# Scalavelli project | ||
|
||
Project for PPS. | ||
|
||
Use openjdk11 and scala 2.12.8. | ||
|
||
### How to execute | ||
### Build status | ||
| Branch | Build | Coverage | | ||
| --- | --- | --- | | ||
| Master | [![Build Status](https://travis-ci.com/Part-Time-Team/scalavelli.svg?branch=master)](https://travis-ci.com/Part-Time-Team/scalavelli) | [![codecov](https://codecov.io/gh/Part-Time-Team/scalavelli/branch/master/graph/badge.svg)](https://codecov.io/gh/Part-Time-Team/scalavelli) | | ||
| Dev | [![Build Status](https://travis-ci.com/Part-Time-Team/scalavelli.svg?branch=dev)](https://travis-ci.com/Part-Time-Team/scalavelli) | [![codecov](https://codecov.io/gh/Part-Time-Team/scalavelli/branch/dev/graph/badge.svg)](https://codecov.io/gh/Part-Time-Team/scalavelli) | | ||
|
||
### How to compile | ||
Move to main dir of project and execute following commands to compile executable packages | ||
|
||
```shell script | ||
sbt pack | ||
sbt clean pack | ||
``` | ||
|
||
This command produce executable scripts in client and server directories. You can execute them with those commands: | ||
You can also modify configuration files to execute the server on a different machine. You have to change the Constant as: | ||
|
||
| Project | Command | | ||
| --- | --- | | ||
| Server | `./server/target/pack/bin/scalavelli-server` | | ||
| Client | `./client/target/pack/bin/applauncher` | | ||
```scala | ||
// Run on a LAN machine. | ||
final val SERVER_ADDRESS = "192.168.43.21" | ||
final val SERVER_PORT = 8081 | ||
``` | ||
|
||
```scala | ||
// Run on the local machine. | ||
final val SERVER_ADDRESS = "localhost" | ||
final val SERVER_PORT = 5150 | ||
``` | ||
|
||
Look to our travis.yml file for packaging scripts. | ||
|
||
### How to execute | ||
|
||
This command produces executable scripts in client and server directories. You can execute them with those commands: | ||
|
||
| Project | Linux | Windows | | ||
| --- | --- | --- | | ||
| Server | `./server/target/pack/bin/scalavelli-server` | `.\server\target\pack\bin\scalavelli-server` | | ||
| Client | `./client/target/pack/bin/applauncher` | `.\client\target\pack\bin\applauncher` | | ||
|
||
Be aware to execute first the server and after that how many clients you want. | ||
You can also modify configuration files to execute server on a different machine. | ||
We don't provide guide to deploy on remote machine or containers. | ||
|
||
We don't provide the guide to deploy on a remote machine or containers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
akka { | ||
|
||
loglevel = "DEBUG" | ||
loglevel = "INFO" | ||
|
||
actor { | ||
provider = remote | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions
8
client/src/main/scala/it/parttimeteam/controller/MainControllerImpl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
client/src/main/scala/it/parttimeteam/controller/ViewMessage.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package it.parttimeteam.controller | ||
|
||
sealed class ViewMessage | ||
|
||
object ViewMessage { | ||
|
||
case class ActualPlayerTurn(playerUsername: String) extends ViewMessage | ||
|
||
case object YourTurn extends ViewMessage | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
client/src/main/scala/it/parttimeteam/controller/startup/GameStartUpListener.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.