You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-4Lines changed: 35 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,35 @@
2
2
3
3
A simple number guessing game where you try to guess a randomly generated number. The game will tell you if your guess is too high or too low until you find the correct number.
4
4
5
-
## Running the Game
5
+
## Installation & Running
6
+
7
+
### Installation via Debian Package (Linux)
8
+
9
+
For Debian/Ubuntu and derivatives (recommended for terminal usage):
10
+
11
+
1. Download the `.deb` package from the [latest release](https://github.com/Project516/NumberGuessingGame/releases)
12
+
2. Install it:
13
+
```bash
14
+
sudo dpkg -i numberguessinggame.deb
15
+
sudo apt-get install -f # Install dependencies if needed
16
+
```
17
+
3. Run from anywhere in your terminal:
18
+
```bash
19
+
numberguessinggame
20
+
```
21
+
22
+
To uninstall:
23
+
```bash
24
+
sudo dpkg -r numberguessinggame
25
+
```
6
26
7
-
### Requirements
27
+
### Manual Installation
28
+
29
+
#### Requirements
8
30
9
31
- Java 8 or higher (may require Java 17+ in future versions)
10
32
11
-
### How to Run
33
+
####How to Run
12
34
13
35
**On Windows:**
14
36
Run `run.bat`
@@ -55,7 +77,9 @@ gradle build
55
77
gradle test
56
78
```
57
79
58
-
### Creating Release Archive
80
+
### Creating Release Archives
81
+
82
+
#### Zip Archive
59
83
60
84
**On Windows:**
61
85
Run `.\gradlew build` and `package.bat` from the project root.
@@ -64,3 +88,10 @@ Run `.\gradlew build` and `package.bat` from the project root.
64
88
Run `./package.sh` from the project root.
65
89
66
90
This will create `archive.zip` containing the application, run scripts, and README. The archive can be released to GitHub Releases.
91
+
92
+
#### Debian Package
93
+
94
+
**On Linux:**
95
+
Run `./package-deb.sh` from the project root.
96
+
97
+
This will create `numberguessinggame.deb` which can be installed via `apt`/`dpkg` on Debian-based systems. The package can be released to GitHub Releases for easy distribution.
0 commit comments