From aca2c03b6dc73b07ce922a561e04136365b0aa0b Mon Sep 17 00:00:00 2001 From: Saif Mahmud Date: Sun, 3 Sep 2023 12:12:33 -0500 Subject: [PATCH] repush --- .github/workflows/main.yml | 4 ++-- README.md | 2 +- src/Computer.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f7969a..25cc5d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -103,7 +103,7 @@ jobs: run: jpackage --input ${{ env.OUT_DIR }} --name ${{ env.FILE_NAME }} --main-jar ${{ env.FILE_NAME }}-${{ env.VERSION }}.jar --main-class App --type deb --dest . - name: List contents of out directory - run: ls ${{ env.OUT_DIR }} + run: ls -lh . - name: Rename Ubuntu standalone run: mv ${{ env.FILE_NAME }}_1.0-1_amd64.deb ${{ env.FILE_NAME }}-Ubuntu-${{ env.VERSION }}_amd64.deb @@ -142,7 +142,7 @@ jobs: run: jpackage --input ${{ env.OUT_DIR }} --name ${{ env.FILE_NAME }} --main-jar ${{ env.FILE_NAME }}-${{ env.VERSION }}.jar --main-class App --type exe --dest . - name: List contents of out directory (Windows) - run: Get-ChildItem -Path ${{ env.OUT_DIR }} + run: Get-ChildItem -Path . - name: Rename Windows standalone diff --git a/README.md b/README.md index 0d4f309..0fb24af 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Make sure you have JRE installed on your computer. You can download JRE [here](h 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). - Ensure that Java is 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: + Ensure that Java is added to your `PATH` so that it can be accessed from the command prompt. During the jre installation, You will have option to add to your path. Is is unchecked by default. Make sure to enable it. To check if Java is installed, run the following command in Command Prompt or PowerShell: ```bash java -version ``` diff --git a/src/Computer.java b/src/Computer.java index 4784e10..b2f9402 100644 --- a/src/Computer.java +++ b/src/Computer.java @@ -120,9 +120,9 @@ private int minimax(int depth, int alpha, int beta, boolean isWhitesTurn) { if(depth == 0 || blackWon || whiteWon || draw) { // evaluate the board from the computer's perspective if(blackWon){ - result = 100 + depth; + result = 1000 + depth; } else if(whiteWon){ - result = -(100 + depth); + result = -(1000 + depth); } else if(draw){ result = 0; } else {