File tree Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Expand file tree Collapse file tree 3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,26 @@ ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
2
2
3
3
all : procLocal preFix class jar done
4
4
5
+ eclipse : procLocal preFix
6
+
5
7
# Hard compile with th existing java file
6
8
hard : class jar done
7
9
10
+ procLocal :
11
+ processing-java --sketch=" $( ROOT_DIR) " --output=" $( ROOT_DIR) /build/processing" --force --build
12
+
13
+ # Processing java preprocesor fix
14
+ preFix :
15
+ cd build; sed -i -e " s/.* size commented out by preprocessor .*;/size(1000, 1000);/" processing/source/CardGame.java
16
+
8
17
# First compile with processing
9
18
class :
10
19
cd build; javac -target 1.8 -source 1.8 -d out -cp lib/gifAnimation.jar:buildlib/sound.jar:lib/javamp3-1.0.4.jar:lib/1.8/core.jar:lib/jogl-all.jar processing/source/CardGame.java
11
20
12
21
# Then compile with javac
13
22
jar :
14
- cd build; jar cvfm Main.jar ./META-INF/MANIFEST.MF -C ./out . ../data
23
+ cd build; jar - cvfm Main.jar ./META-INF/MANIFEST.MF -C ./out . ../data lib
15
24
16
25
done :
17
26
@echo " Done building"
18
27
@echo " Main.jar located in build directory"
19
-
20
- # Builds with processing
21
- # proc:
22
- # cd /opt/hostedtoolcache/processing/3.5.4/x64; ./processing-java --sketch="$(ROOT_DIR)" --output="$(ROOT_DIR)/build/processing" --force --build
23
-
24
- procLocal :
25
- processing-java --sketch=" $( ROOT_DIR) " --output=" $( ROOT_DIR) /build/processing" --force --build
26
-
27
- # Processing java preprocesor fix
28
- preFix :
29
- cd build; sed -i -e " s/.* size commented out by preprocessor .*;/size(1000, 1000);/" processing/source/CardGame.java
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ Card game for AP Computer Science AB 2022-2023 in Ivan Rico's class
11
11
- ** Requires [ Processing v3.5.1] ( https://processing.org/download ) **
12
12
- Then in the processing app go to in the top bar: ` Tools ` -> ` Install processing-java `
13
13
- ``` bash
14
- make
14
+ make eclipse
15
15
```
16
- - Then ` Main.jar ` will be in the ` build ` folder
16
+
17
+ - Then compile to a jar file in eclipse (** Instructions missing** )
18
+ <!-- - Then `Main.jar` will be in the `build` folder -->
17
19
18
20
## Running
19
21
@@ -24,14 +26,13 @@ Card game for AP Computer Science AB 2022-2023 in Ivan Rico's class
24
26
25
27
## Project Requirements
26
28
27
- - 11/27 High Low Card Game
28
- - Type in name
29
- - 52 Card deck
29
+ - Random positions of cards
30
+ - 52 cards, but 7 rounds
30
31
- 4 Suits (clubs, spades, hearts, diamonds)
31
32
- A-10, J, Q, K
32
33
- Tracks total correct
33
34
- Tracks current streak
34
35
- Tracks highest streak
35
36
- Calculated score with bonus based on streak (ex: +50% bonus score each time streak increases)
36
- - Can view name, score, total correct and highest streak for each player (this does not have to carry over when you close the app)
37
+ - Can view score, total correct and highest streak for each player (this does not have to carry over when you close the app)
37
38
- Can exit game at any point
Original file line number Diff line number Diff line change 1
1
Main-Class : CardGame
2
- Class-path : lib/gifAnimation.jar lib/sound.jar lib/javamp3-1.0.4.jar lib/1.7/core.jar lib/jogl-all.jar
2
+ Class-path : ./ lib/gifAnimation.jar ./ lib/sound.jar ./ lib/javamp3-1.0.4.jar ./ lib/1.7/core.jar ./ lib/jogl-all.jar
You can’t perform that action at this time.
0 commit comments