Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit ed7bdb2

Browse files
AndreaBrighiMatteLazzaDiLilloDaniele
authored
Release version 1.0.0
*create the ground *create the missile *check collisions *restart the game Co-authored-by: Matteo Lazzari <[email protected]> Co-authored-by: Daniele Di Lillo <[email protected]>
1 parent e450e4e commit ed7bdb2

File tree

100 files changed

+4762
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4762
-14
lines changed

.github/workflows/scala.yml

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,46 @@ name: Scala CI
33
on:
44
push:
55

6+
permissions:
7+
contents: write
8+
checks: write
9+
610
jobs:
711
build:
812

913
runs-on: ubuntu-latest
1014

1115
steps:
12-
- uses: actions/checkout@v3
13-
- name: Set up JDK 17
14-
uses: actions/setup-java@v3
15-
with:
16-
java-version: '17'
17-
distribution: 'temurin'
18-
cache: 'sbt'
19-
- name: Run tests
20-
run: sbt test
16+
- uses: actions/checkout@v3
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '17'
21+
distribution: 'temurin'
22+
cache: 'sbt'
23+
- run: sbt clean
24+
- name: Run tests
25+
run: sbt coverage test
26+
- name: Generate coverage report
27+
run: sbt coverageReport
28+
# - name: Generate documentation
29+
# run: sbt doc
30+
- name: Report
31+
uses: dorny/test-reporter@v1
32+
if: always()
33+
with:
34+
name: Scala Tests
35+
path: target/test-reports/*.xml
36+
reporter: java-junit
37+
fail-on-error: true
38+
- name: Upload coverage to GitHubPage
39+
uses: JamesIves/github-pages-deploy-action@v4
40+
with:
41+
folder: target/scala-3.2.0/scoverage-report # The folder the action should deploy.
42+
branch: coverage-deploy # The branch the action should deploy to.
43+
# - name: Upload documentation
44+
# uses: actions/upload-artifact@v3
45+
# with:
46+
# name: documentation
47+
# path: target/scala-3.2.0/api/
48+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ project/plugins/project/
102102
.history
103103
.cache
104104
.lib/
105+
.idea/
105106
/.bsp/*
106107

107108
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,sbt

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# PPS-22-mis-com
2-
# PPS-22-mis-com
1+
# Missile Command
2+
- - -
3+
## pps-2022-missile-command
4+
authors: Andrea Brighi, Daniele Di Lillo, Matteo Lazzari
5+
## Introduction
6+
This project is a reimplementation of the classic game Missile Command, developed Scala.
7+
The project is developed using a functional programming paradigm and a TDD approach.

build.sbt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
ThisBuild / version := "0.1.0-SNAPSHOT"
1+
ThisBuild / version := "1.0.0"
2+
3+
ThisBuild / scalaVersion := "3.2.0"
4+
5+
val scalatest = "org.scalatest" %% "scalatest" % "3.2.12" % Test
6+
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.17.0" % "test"
7+
val scalactic = "org.scalactic" %% "scalactic" % "3.2.14"
28

3-
ThisBuild / scalaVersion := "3.1.3"
49

510
lazy val root = (project in file("."))
611
.settings(
7-
name := "missile command"
12+
name := "missile command",
13+
libraryDependencies ++= Seq(scalatest, scalaCheck, scalactic)
14+
++
15+
Seq(
16+
"io.monix" %% "monix" % "3.4.1",
17+
"dev.optics" %% "monocle-core" % "3.1.0",
18+
"dev.optics" %% "monocle-macro" % "3.1.0"
19+
),
20+
assembly / mainClass := Some("view.startGame"),
21+
assembly / assemblyJarName := "missile_command.jar",
822
)
23+
24+

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.3")
2+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.0.0")

src/main/resources/Base_false_0.png

38.4 KB
Loading

src/main/resources/Base_false_1.png

39.4 KB
Loading

src/main/resources/Base_false_2.png

39.3 KB
Loading

src/main/resources/Base_false_3.png

39 KB
Loading

src/main/resources/Base_true_0.png

38.4 KB
Loading

0 commit comments

Comments
 (0)