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
+61-8Lines changed: 61 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,73 @@ The AI will also use alpha-beta pruning to reduce the number of nodes that need
14
14
15
15
## Running the Program
16
16
17
-
- Make sure you have JRE installed on your computer. You can download JRE [here](https://www.oracle.com/java/technologies/javase-jre8-downloads.html).
17
+
- Make sure you have JRE installed on your computer. You can download JRE [here](https://adoptium.net/) or [here](https://www.oracle.com/java/technologies/javase-jre8-downloads.html).
18
18
19
19
You can download the release version of the Game from the latest release [here](https://github.com/vmsaif/connect4-with-minimax-algorithm-in-java/releases). The program is packaged as a JAR file. You can run the program by double-clicking on the JAR file.
20
20
21
-
After downloading the JAR file, you might need to give the JAR file permission to run. You can do this by running the following command in the terminal:
21
+
## **Ubuntu**
22
22
23
-
- Go the directory where the JAR file is downloaded
24
-
-`cd ~/Downloads` (or wherever the JAR file is downloaded)
25
-
- Run `chmod +x connect4.jar`
23
+
1.**Installing Java** (if it's not already installed):
24
+
```bash
25
+
sudo apt update
26
+
sudo apt install default-jre
27
+
```
26
28
29
+
2.**Navigate to the Download Location**:
30
+
```bash
31
+
cd~/Downloads
32
+
```
27
33
34
+
3.**Provide Execute Permissions** (Optional, but useful if you want to execute it directly):
35
+
```bash
36
+
chmod +x connect4-1.0.0.jar # Replace the filename with the name of the JAR file you downloaded
37
+
```
28
38
29
-
## Compiling and Running
39
+
4.**Run the JAR File**:
40
+
```bash
41
+
java -jar connect4-1.0.0.jar # Replace the filename with the name of the JAR file you downloaded
42
+
```
43
+
44
+
## **macOS**
45
+
46
+
1.**Navigate to the Download Location** (using Terminal):
47
+
```bash
48
+
cd~/Downloads
49
+
```
50
+
51
+
3.**Provide Execute Permissions** (Optional):
52
+
```bash
53
+
chmod +x connect4-1.0.0.jar # Replace the filename with the name of the JAR file you downloaded
54
+
```
55
+
56
+
4.**Run the JAR File**:
57
+
```bash
58
+
java -jar connect4-1.0.0.jar # Replace the filename with the name of the JAR file you downloaded
59
+
```
60
+
61
+
## **Windows**
62
+
63
+
1.**Confirming Java**:
64
+
Ensure that Java is installed and added to your `PATH` so that it can be accessed from the command prompt. (Most installers will do this for you.) To check if Java is installed, run the following command in Command Prompt or PowerShell:
65
+
```bash
66
+
java -version
67
+
```
68
+
If Java is installed, you should see the version number. If you see an error, you need to install Java. See above for instructions on installing Java.
69
+
70
+
2. **Navigate to the Download Location** (using Command Prompt or PowerShell):
71
+
```bash
72
+
cd c:\Users\username\Downloads # Replace username with your username
73
+
```
74
+
75
+
3. **Run the JAR File**:
76
+
```bash
77
+
java -jar connect4-1.0.0.jar
78
+
```
79
+
80
+
In all cases, once the commands are followed, the Java application packaged inside the JAR file should start running.
81
+
82
+
83
+
## Compiling and Running (Advanced)
30
84
### Compiling
31
85
The game is written in Java and can be compiled using the following steps:
32
86
@@ -35,6 +89,5 @@ The game is written in Java and can be compiled using the following steps:
35
89
- Run the command`java -cp bin/ App` to run the game.
36
90
37
91
38
-
39
92
## Bugs:
40
-
I have not found any bugs in the program yet. If you find any, please let me know.
93
+
I have not found any bugs in the program yet. If you find any, please let me know by opening an issue from the issue tab.
0 commit comments