Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2113-T18-1] ChessMaster #19

Open
wants to merge 634 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
634 commits
Select commit Hold shift + click to select a range
9fc8c13
Merge pull request #115 from onx001/StartBug
TongZhengHong Nov 3, 2023
70b7003
Fix minimax aggro
onx001 Nov 4, 2023
e0159f0
Update MiniMax.java
onx001 Nov 4, 2023
f2e8235
Merge pull request #116 from onx001/Check
TongZhengHong Nov 4, 2023
10847a1
Merge pull request #149 from onx001/MinimaxAggro
TongZhengHong Nov 4, 2023
37cbf93
Update no available moves ui
TongZhengHong Nov 4, 2023
3268804
Fix empty payload in ShowMovesCommand
TongZhengHong Nov 4, 2023
98331c4
Fix wrong color when player loses
TongZhengHong Nov 4, 2023
c0b3577
Convert code blocks from markdown to html
TongZhengHong Nov 4, 2023
0fe8b95
Fix link to legend command
TongZhengHong Nov 4, 2023
80e109a
Merge pull request #152 from TongZhengHong/fix-ug-formatting
onx001 Nov 4, 2023
f17486a
Merge pull request #151 from TongZhengHong/fix-wrong-losing-color
onx001 Nov 4, 2023
dc3668c
Merge pull request #150 from TongZhengHong/fix-moves-command
onx001 Nov 4, 2023
f7838f2
Add InvalidCommand class
TongZhengHong Nov 5, 2023
7eb0f9e
Update NullPieceException message
TongZhengHong Nov 5, 2023
f8a7b35
Check for empty move
TongZhengHong Nov 5, 2023
714d012
Merge pull request #15 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 5, 2023
d82392e
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp
TriciaBK Nov 5, 2023
1f3e7f7
Add function to save move history
ken-ruster Nov 5, 2023
498fbea
Update documentation
ken-ruster Nov 5, 2023
08420ba
Add expected output to UserGuide
TriciaBK Nov 5, 2023
7324ef4
Check hasNextLine in getUserInput
TongZhengHong Nov 5, 2023
a052e85
Add CPU thinking message
TongZhengHong Nov 5, 2023
9bffca4
Add shouldIgnoreEmpty flag in getUserInput
TongZhengHong Nov 5, 2023
1710195
Ignore empty inputs only for Game commands
TongZhengHong Nov 5, 2023
32cf804
Save board state at end of loading new game
TongZhengHong Nov 5, 2023
99a3ee4
Show difficulty in UI message when continue previous game
TongZhengHong Nov 5, 2023
18d37b1
Merge pull request #154 from TongZhengHong/add-invalid-command
onx001 Nov 6, 2023
f684dee
Merge pull request #153 from TongZhengHong/fix-force-quit-error
onx001 Nov 6, 2023
acdd930
Add more details for special rules
TriciaBK Nov 6, 2023
5406e62
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TriciaBK Nov 6, 2023
3762f79
Fix Checkstyle
TriciaBK Nov 6, 2023
19fb966
Update castling rules
TriciaBK Nov 6, 2023
42eef1a
Add promotion as move type
ken-ruster Nov 6, 2023
fa0fa79
Add En Passant and new Check function
onx001 Nov 6, 2023
4525066
Implement Check in MiniMax
onx001 Nov 6, 2023
7bf7c54
FixCheckBug
onx001 Nov 6, 2023
8e0a8f1
Add Castling Check
onx001 Nov 6, 2023
802582d
Implement checkmate as endgame condition
onx001 Nov 6, 2023
717b358
Add checks for validity of saved board
ken-ruster Nov 6, 2023
7d870ef
Merge pull request #16 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 6, 2023
59c2d5e
Rename function and integrate show moves
onx001 Nov 6, 2023
a10c349
Resolve Gradle checks
ken-ruster Nov 6, 2023
67619dc
Add basic history functionality
Nov 7, 2023
ef6bac8
Add tests for HistoryCommand
Nov 7, 2023
ff6b86b
Update UG
Nov 7, 2023
9b339c0
Update DG
Nov 7, 2023
8268c7b
Fix checkstyle issues
Nov 7, 2023
26725a4
Update formatting
TriciaBK Nov 7, 2023
7469500
Merge pull request #155 from TriciaBK/documentation
TongZhengHong Nov 7, 2023
4e50d84
Merge pull request #156 from onx001/EnPassant
TongZhengHong Nov 7, 2023
eb87848
Merge pull request #157 from onx001/CheckAI
TongZhengHong Nov 7, 2023
d3fa18b
FIx minimax validity
onx001 Nov 7, 2023
e9e5923
Merge branch 'master' into saveMoves
ken-ruster Nov 7, 2023
1941801
Resolve checkStyle
ken-ruster Nov 7, 2023
65c8c86
Update end-to-end tests to allow CI to pass
Nov 7, 2023
52086ff
Create MoveFactory
Nov 7, 2023
d7ec2a8
Update HistoryCommand implementation
Nov 7, 2023
5770b3d
Update test to match output
Nov 7, 2023
e5300d3
Merge pull request #160 from onx001/CheckAI
TongZhengHong Nov 7, 2023
5a1f957
Add 'capture' messages for UI and history output
Nov 7, 2023
c836b13
Resolve comments
ken-ruster Nov 8, 2023
50b6d2e
Refactor validity checking
ken-ruster Nov 8, 2023
2ff19bf
Merge branch 'master' into saveMoves
ken-ruster Nov 8, 2023
41f3b5f
Fix En Passant Bug
onx001 Nov 8, 2023
809e5e4
Merge branch 'master' into CheckAI
onx001 Nov 8, 2023
f1b2b4e
Merge pull request #158 from ken-ruster/saveMoves
TongZhengHong Nov 8, 2023
30aa1e6
Add restart new game function if game ends or is aborted
TriciaBK Nov 8, 2023
b3012f1
Add restart command to restart board midgame
TriciaBK Nov 8, 2023
d2dd897
Fix bugs with abort and restart
TriciaBK Nov 8, 2023
2a8bb70
Update help command
TriciaBK Nov 8, 2023
4fad3f2
Fix checkstyle
TriciaBK Nov 8, 2023
491c930
Add basic stepback implementation
Nov 8, 2023
87717d8
Add logic to reverse capturing
Nov 8, 2023
0870bc7
Update UG and help menu
Nov 8, 2023
eb795e1
Fix help menu alignment
Nov 8, 2023
ad02abf
Merge branch 'master' into branch-History
antrikshdhand Nov 8, 2023
8763f34
Update HistoryTest.java
antrikshdhand Nov 8, 2023
f7accc3
Update HistoryTest.java
antrikshdhand Nov 8, 2023
21806a5
Update HistoryTest.java to fit CheckStyle
antrikshdhand Nov 8, 2023
eb1b788
Merge pull request #159 from antrikshdhand/branch-History
antrikshdhand Nov 8, 2023
30c659f
Update Unicode in testing file
Nov 8, 2023
5f078f2
Merge branch 'AY2324S1-CS2113-T18-1:master' into branch-History
antrikshdhand Nov 8, 2023
c2e3ec8
Renamed abort to exit
TriciaBK Nov 8, 2023
56dbf14
Update branch with latest code
Nov 8, 2023
bd4d5f6
Fix checkstyle issues
Nov 8, 2023
4de3a98
refactor code
TriciaBK Nov 8, 2023
c6e77af
Fix checkstyle
TriciaBK Nov 8, 2023
eedd6ec
Fix typo
TriciaBK Nov 9, 2023
dd63b30
Fix merge conflicts
TriciaBK Nov 9, 2023
8017314
Update README.md
Nov 9, 2023
6f9c306
Merge branch 'master' into CheckAI
onx001 Nov 9, 2023
ef82d23
Merge pull request #163 from onx001/CheckAI
onx001 Nov 9, 2023
9b39705
Merge branch 'master' into branch-StepBack
onx001 Nov 9, 2023
69fd191
Merge pull request #165 from antrikshdhand/branch-StepBack
onx001 Nov 9, 2023
f0b364c
Update command class
TriciaBK Nov 9, 2023
de5ae95
Move Rename Fix
onx001 Nov 9, 2023
01be1dd
Reimplement check
onx001 Nov 9, 2023
6e02e4b
Merge branch 'master' into restart-game
TongZhengHong Nov 9, 2023
12a84ad
Change getpiece function
TriciaBK Nov 9, 2023
1dc655a
Merge pull request #168 from onx001/move-rename
TongZhengHong Nov 9, 2023
caeabca
Update to getPseudoLegalCoord and getLegalCoord in ChessPiece
TongZhengHong Nov 9, 2023
381d557
Update ChessBoard getLegalMoves and getPseudoLegalMoves
TongZhengHong Nov 9, 2023
e4f0cc4
Change pseudoLegalCoord to return 1D flattened array
TongZhengHong Nov 9, 2023
2fb6596
Fix warnings in storage
TongZhengHong Nov 9, 2023
1e276c1
Merge branch 'master' into branch-refactor-chessboard
TongZhengHong Nov 9, 2023
b2ad4f9
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TongZhengHong Nov 9, 2023
e0c3716
Merge branch 'branch-refactor-chessboard' of https://github.com/TongZ…
TongZhengHong Nov 9, 2023
201303c
Fix infinite loop by chnaging to getPseudoLegalCoords
TongZhengHong Nov 9, 2023
c1788f6
Resolve conflicts
TriciaBK Nov 9, 2023
5cb0482
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TriciaBK Nov 9, 2023
2e445ee
Update documentation
TriciaBK Nov 9, 2023
efa9398
Resolve conflicts
TriciaBK Nov 9, 2023
a57b464
Merge pull request #164 from TriciaBK/restart-game
TriciaBK Nov 9, 2023
ab71546
Merge pull request #169 from TongZhengHong/branch-refactor-chessboard
onx001 Nov 9, 2023
b464629
Add exit flag
TriciaBK Nov 9, 2023
8c5aacb
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TriciaBK Nov 9, 2023
9efb1cb
Add exit function mid load game
TriciaBK Nov 9, 2023
651a844
Fix checkstyle
TriciaBK Nov 9, 2023
5d1d3b6
Merge pull request #17 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 9, 2023
4dd5747
Update class diagrams
ken-ruster Nov 9, 2023
a0110a6
Update sequence diagrams
ken-ruster Nov 9, 2023
17a7572
Update architecture diagram
ken-ruster Nov 9, 2023
742b2e3
Merge branch 'master' of github.com:AY2324S1-CS2113-T18-1/tp into bra…
Nov 10, 2023
665087e
Add PPP for ken-ruster
ken-ruster Nov 10, 2023
94b21a2
Update JavaDoc documentation
ken-ruster Nov 10, 2023
c246dab
Fix checkStyle errors
ken-ruster Nov 10, 2023
0ca6bc5
Merge pull request #170 from TriciaBK/exit-game
ken-ruster Nov 10, 2023
b0900e3
Create onx001.md
onx001 Nov 10, 2023
f7431ce
Update onx001.md
onx001 Nov 10, 2023
02478a1
Merge branch 'master' into branch-readme
Nov 10, 2023
1b58255
Update README.md
Nov 10, 2023
74c3649
Merge branch 'master' into branch-history
Nov 10, 2023
d8f7b1e
Update small TextUI details
Nov 10, 2023
2ab92d3
Update UG for exit command
Nov 10, 2023
9e8ad64
Merge pull request #171 from antrikshdhand/branch-readme
ken-ruster Nov 10, 2023
0d55d2a
Merge pull request #172 from ken-ruster/doc-update
ken-ruster Nov 10, 2023
8f86bab
Update stepback and history commands with castling logic
Nov 10, 2023
a6067ed
Merge pull request #173 from onx001/ppp
TongZhengHong Nov 10, 2023
69d0824
Add draft PPP contributions
TongZhengHong Nov 10, 2023
96178ee
Rename TongZhengHong.md to tongzhenghong.md
TongZhengHong Nov 10, 2023
b7099fd
Merge pull request #174 from TongZhengHong/branch-zhenghong-ppp
TongZhengHong Nov 10, 2023
90522ef
Add PPP draft
TriciaBK Nov 10, 2023
d7bb8c9
Merge pull request #175 from TriciaBK/tricia
TongZhengHong Nov 10, 2023
d1ce2ce
Add CastleMove class as a subclass of Move
Nov 10, 2023
7e3e10e
Update MoveCommand message to reflect castling
Nov 10, 2023
bbfe1ed
Merge branch 'master' into branch-History
Nov 10, 2023
8a4de19
Fix checkstyle errors
Nov 10, 2023
f676892
Upload PPP
Nov 10, 2023
32e4d12
Merge pull request #178 from antrikshdhand/branch-readme
antrikshdhand Nov 12, 2023
c88fea3
EnPassant load fix
onx001 Nov 12, 2023
413a98e
Merge pull request #176 from antrikshdhand/branch-History
onx001 Nov 12, 2023
25acc31
Merge pull request #179 from onx001/PassantBug
ken-ruster Nov 12, 2023
964da00
Use SLAP to simplify minimax
onx001 Nov 12, 2023
fcae0e3
Merge stash with upstream
Nov 12, 2023
23b2736
Add logic to reverse promotion
Nov 12, 2023
cecc663
Refactor en passant moves into its own class
Nov 12, 2023
429ea9f
Remove redundant code
Nov 12, 2023
23dd131
Extract executeMove() code into individual methods
Nov 12, 2023
edb977b
Fix checkstyle
Nov 12, 2023
0993b31
Merge pull request #180 from antrikshdhand/branch-History
onx001 Nov 12, 2023
b20897b
Add Draw Condition
onx001 Nov 12, 2023
0fb5a55
Cleanup
onx001 Nov 12, 2023
c34338f
Merge branch 'master' into 2.1-Updates
onx001 Nov 12, 2023
f46af11
Implement 'captured' command
Nov 12, 2023
3c38813
Update UG
Nov 12, 2023
49caca9
Fix formatting on help menu
Nov 12, 2023
311ff0d
Docs Update
onx001 Nov 12, 2023
862dda0
Update README.md with new command
Nov 12, 2023
62e4ee3
Merge pull request #181 from onx001/2.1-Updates
antrikshdhand Nov 12, 2023
fc2e9c0
Update PPP
onx001 Nov 12, 2023
06c2aad
Update README.md
onx001 Nov 12, 2023
2061176
Merge pull request #18 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 12, 2023
d33f630
Fix stepback on loaded game
ken-ruster Nov 12, 2023
9df3942
Add tests for parsePromote
ken-ruster Nov 12, 2023
579fcfb
Add test for showMoveCommand
ken-ruster Nov 12, 2023
c662f9d
Merge pull request #183 from onx001/2.1-Updates
onx001 Nov 13, 2023
6bb4d9d
Merge branch 'master' into branch-Pieces
onx001 Nov 13, 2023
98c510d
Merge pull request #184 from ken-ruster/stepback-bugfix
onx001 Nov 13, 2023
acd7a81
Merge pull request #182 from antrikshdhand/branch-Pieces
onx001 Nov 13, 2023
6f3df81
Update Documentation
onx001 Nov 13, 2023
d7da223
Merge pull request #186 from onx001/docs2
TriciaBK Nov 13, 2023
abb1446
Update puml in Developer Guide
TriciaBK Nov 13, 2023
6efa74c
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TriciaBK Nov 13, 2023
e22f171
Update Developer Guide
TriciaBK Nov 13, 2023
de6b09a
Update Developer Guide
TriciaBK Nov 13, 2023
1c1dde6
Merge pull request #19 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 13, 2023
2680650
Update user guide
TriciaBK Nov 13, 2023
c829a78
fix checkstyle'
TriciaBK Nov 13, 2023
466b9bb
Update UG and DG
TriciaBK Nov 13, 2023
b9d5726
Add test for showMoveCommand
ken-ruster Nov 13, 2023
18b17ae
Add tests for ExecuteSavedMoves
ken-ruster Nov 13, 2023
26dc224
Correct tests for ShowMovesCommand
ken-ruster Nov 13, 2023
25f0c0a
Correct checkStyle
ken-ruster Nov 13, 2023
2e85987
Add test for executeMoveArray
ken-ruster Nov 13, 2023
ce1009c
Correct checkStyle
ken-ruster Nov 13, 2023
8b590fe
Correct CI tests
ken-ruster Nov 13, 2023
a0f0648
Update PPP
ken-ruster Nov 13, 2023
4d663ae
Update reposense
ken-ruster Nov 13, 2023
fe98b6f
Fix CI checks
ken-ruster Nov 13, 2023
d9332ac
Merge pull request #187 from TriciaBK/tricia
TongZhengHong Nov 13, 2023
33dea45
Merge pull request #188 from ken-ruster/add-tests
TongZhengHong Nov 13, 2023
74d3956
Test fix ug formatting of chessboard
TongZhengHong Nov 13, 2023
fc333cd
Merge pull request #189 from TongZhengHong/branch-fix-ug-formatting
TriciaBK Nov 13, 2023
8d5ba9a
Change ``` to html tags for code blocks
TongZhengHong Nov 13, 2023
2259860
Merge pull request #190 from TongZhengHong/branch-fix-ug-2
TriciaBK Nov 13, 2023
c0c17a5
Change to table for code block
TongZhengHong Nov 13, 2023
c750b5c
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TongZhengHong Nov 13, 2023
360a1fd
Update documentation and class diagram
TriciaBK Nov 13, 2023
1c8da78
Update PPP
TriciaBK Nov 13, 2023
2bd7357
Merge pull request #191 from TongZhengHong/branch-fix-ug-3
TriciaBK Nov 13, 2023
56b8aba
Update PPP
Nov 14, 2023
8c7342e
Merge pull request #192 from TriciaBK/tricia
antrikshdhand Nov 14, 2023
f457f9b
Merge pull request #193 from antrikshdhand/branch-FinalChanges
ken-ruster Nov 14, 2023
0de748b
Merge pull request #21 from AY2324S1-CS2113-T18-1/master
ken-ruster Nov 14, 2023
8d75c39
Update PPP
ken-ruster Nov 14, 2023
3af0b23
Update PPP
ken-ruster Nov 14, 2023
3e31de5
Update docs
onx001 Nov 14, 2023
e28809a
Show storage file format in UG
TongZhengHong Nov 14, 2023
2ed2f11
Remove unnecessary var
TongZhengHong Nov 14, 2023
640f78c
Fix UI message for choose player color
TongZhengHong Nov 14, 2023
6afb108
Check empty spaces and delimiter in Storage class
TongZhengHong Nov 14, 2023
67be4cc
Merge pull request #195 from onx001/docs3
TongZhengHong Nov 14, 2023
aae3ad2
Merge pull request #194 from ken-ruster/add-tests
onx001 Nov 14, 2023
04e18cb
Merge pull request #196 from TongZhengHong/branch-rebust-storage
onx001 Nov 14, 2023
50c96b0
Update onx001.md
onx001 Nov 14, 2023
a7aa3a1
Fix bug with current turn in save
ken-ruster Nov 14, 2023
9fa6733
Add PPP link
TriciaBK Nov 14, 2023
59f5d20
Merge branch 'master' into add-tests
ken-ruster Nov 14, 2023
ad9de0c
Merge pull request #197 from onx001/ppp1
TongZhengHong Nov 14, 2023
aa788a2
Merge pull request #198 from ken-ruster/add-tests
TongZhengHong Nov 14, 2023
d7bb443
Merge branch 'master' of https://github.com/AY2324S1-CS2113-T18-1/tp …
TriciaBK Nov 14, 2023
8ffe6a4
Update PPP links in AboutUs
TriciaBK Nov 14, 2023
5cae662
Minor fixes
TongZhengHong Nov 14, 2023
460dc3b
Update PPP
TriciaBK Nov 14, 2023
3d190c1
Disable loadBoard method and remove saving
TongZhengHong Nov 14, 2023
6f75922
Add link to TP Dashboard
TriciaBK Nov 14, 2023
c9dc296
Remove calls to loadBoard
TongZhengHong Nov 14, 2023
65fccd0
Fix checkstyle
TongZhengHong Nov 14, 2023
e630390
Fix checkstyle 2
TongZhengHong Nov 14, 2023
0fe9f19
Merge pull request #199 from TriciaBK/tricia
TongZhengHong Nov 14, 2023
f895863
Fix checkstyle 3
TongZhengHong Nov 14, 2023
21b3717
Merge pull request #200 from TongZhengHong/remove-chessboard-storag
onx001 Nov 14, 2023
d74d6d3
Remove json tag in code block
TongZhengHong Nov 14, 2023
bf7e53a
Fix bug with current turn in save
ken-ruster Nov 14, 2023
7a30a43
Merge pull request #201 from TongZhengHong/branch-ug-format-4
onx001 Nov 14, 2023
92a817f
Merge branch 'add-tests' of https://github.com/ken-ruster/tp into add…
ken-ruster Nov 14, 2023
640bcaf
Merge pull request #202 from ken-ruster/add-tests
onx001 Nov 14, 2023
1259479
Add gameplay link
TongZhengHong Nov 14, 2023
a4245f1
Merge pull request #203 from TongZhengHong/branch-ug-format-4
ken-ruster Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
- name: Build and check with Gradle
run: ./gradlew check

- name: Perform IO redirection test (*NIX)
if: runner.os == 'Linux'
working-directory: ${{ github.workspace }}/text-ui-test
run: ./runtest.sh

- name: Perform IO redirection test (MacOS)
if: always() && runner.os == 'macOS'
working-directory: ${{ github.workspace }}/text-ui-test
run: ./runtest.sh

- name: Perform IO redirection test (Windows)
if: always() && runner.os == 'Windows'
working-directory: ${{ github.workspace }}/text-ui-test
shell: cmd
run: runtest.bat
# - name: Perform IO redirection test (*NIX)
# if: runner.os == 'Linux'
# working-directory: ${{ github.workspace }}/text-ui-test
# run: ./runtest.sh

# - name: Perform IO redirection test (MacOS)
# if: always() && runner.os == 'macOS'
# working-directory: ${{ github.workspace }}/text-ui-test
# run: ./runtest.sh

# - name: Perform IO redirection test (Windows)
# if: always() && runner.os == 'Windows'
# working-directory: ${{ github.workspace }}/text-ui-test
# shell: cmd
# run: runtest.bat
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
/build/
src/main/resources/docs/

.vscode

# MacOS custom attributes files created by Finder
.DS_Store
*.iml
bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
data/
14 changes: 9 additions & 5 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Contributors

Display | Name | Github Profile | Homepage
---|:---:|:---:|:---:
![](https://avatars0.githubusercontent.com/u/22460123?s=100) | Jeffry Lum | [Github](https://github.com/j-lum/) | [Homepage](https://se.kasugano.moe)
![](https://avatars0.githubusercontent.com/u/1673303?s=100) | Damith C. Rajapakse | [Github](https://github.com/damithc/) | [Homepage](https://www.comp.nus.edu.sg/~damithch/)
Name | Github Profile
---|:---:
Antriksh Dhand | [Github](https://github.com/antrikshdhand/)
Ou Ningxiang | [Github](https://github.com/onx001/)
Oh Ken Wei | [Github](https://github.com/ken-ruster/)
Tong Zheng Hong | [Github](https://://github.com/TongZhengHong/)
Tricia Boo Koh | [Github](https://://github.com/TriciaBK/)
# I would like to join this list. How can I help the project

For more information, please refer to our [contributor's guide](https://oss-generic.github.io/process/).

For more information, please refer to our [contributor's guide](README.md#contributing).
3 changes: 3 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: chessmaster.ChessMaster

164 changes: 100 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,100 @@
# Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

## Setting up in Intellij

Prerequisites: JDK 11 (use the exact version), update Intellij to the most recent version.

1. **Ensure Intellij JDK 11 is defined as an SDK**, as described [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk) -- this step is not needed if you have used JDK 11 in a previous Intellij project.
1. **Import the project _as a Gradle project_**, as described [here](https://se-education.org/guides/tutorials/intellijImportGradleProject.html).
1. **Verify the set up**: After the importing is complete, locate the `src/main/java/seedu/duke/Duke.java` file, right-click it, and choose `Run Duke.main()`. If the setup is correct, you should see something like the below:
```
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes

> Task :Duke.main()
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|

What is your name?
```
Type some word and press enter to let the execution proceed to the end.

## Build automation using Gradle

* This project uses Gradle for build automation and dependency management. It includes a basic build script as well (i.e. the `build.gradle` file).
* If you are new to Gradle, refer to the [Gradle Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/gradle.html).

## Testing

### I/O redirection tests

* To run _I/O redirection_ tests (aka _Text UI tests_), navigate to the `text-ui-test` and run the `runtest(.bat/.sh)` script.

### JUnit tests

* A skeleton JUnit test (`src/test/java/seedu/duke/DukeTest.java`) is provided with this project template.
* If you are new to JUnit, refer to the [JUnit Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/junit.html).

## Checkstyle

* A sample CheckStyle rule configuration is provided in this project.
* If you are new to Checkstyle, refer to the [Checkstyle Tutorial at se-education.org/guides](https://se-education.org/guides/tutorials/checkstyle.html).

## CI using GitHub Actions

The project uses [GitHub actions](https://github.com/features/actions) for CI. When you push a commit to this repo or PR against it, GitHub actions will run automatically to build and verify the code as updated by the commit/PR.

## Documentation

`/docs` folder contains a skeleton version of the project documentation.

Steps for publishing documentation to the public:
1. If you are using this project template for an individual project, go your fork on GitHub.<br>
If you are using this project template for a team project, go to the team fork on GitHub.
1. Click on the `settings` tab.
1. Scroll down to the `GitHub Pages` section.
1. Set the `source` as `master branch /docs folder`.
1. Optionally, use the `choose a theme` button to choose a theme for your documentation.
<br />
<div align="center">
<a href="">
<img src="docs/images/ChessMasterLogo.png" alt="Logo" width="80" height="80">
</a>
<h3 align="center">ChessMaster</h3>
<p align="center">
Chess finally makes it to your terminal.
<br />
<a href="https://ay2324s1-cs2113-t18-1.github.io/tp/UserGuide.html">View User Guide</a>
·
<a href="https://ay2324s1-cs2113-t18-1.github.io/tp/DeveloperGuide.html">View Developer Guide</a>
·
<a href="https://ay2324s1-cs2113-t18-1.github.io/tp/AboutUs.html">About Us</a>
</p>
</div>

_ChessMaster_ is a command-line interface (CLI) chess game designed to make learning and training accessible for
beginners while offering an engaging experience for all skill levels. This simple and user-friendly chess simulator
provides a platform for novice players to build their skills and understanding of the game.

This project was created for the _CS2113: Software Engineering and Object-Oriented Programming_ team project and
is programmed in 100% Java.

## Getting started

1. Ensure you have **Java 11 or above** installed in your system.

2. Download the latest version of `ChessMaster.jar` from [here](https://github.com/AY2324S1-CS2113-T18-1/tp/releases).

3. Open a terminal instance and navigate into the folder that contains the downloaded ChessMaster.jar file.

```bash
cd PATH_TO_JAR_FILE
```

4. Run the jar application with the following command:

```bash
java -jar ChessMaster.jar
```

You should be greeted by a welcome message from ChessMaster:
```
_________________________________________________________________

Hey there, chess geek! You have stumbled upon the one and only:
________ __ ___ __
/ ____/ /_ ___ __________ / |/ /___ ______/ /____ _____
/ / / __ \/ _ \/ ___/ ___/ / /|_/ / __ `/ ___/ __/ _ \/ ___/
/ /___/ / / / __(__ |__ ) / / / / /_/ (__ ) /_/ __/ /
\____/_/ /_/\___/____/____/ /_/ /_/\__,_/____/\__/\___/_/

where CHESS becomes an exciting journey of strategy and skill!
_________________________________________________________________
```

## Usage

A summary of user commands can be found in the table below:

| Action | Format |
|---------------|------------------------------------|
| Move | `move [column][row] [column][row]` |
| Show moves | `moves [column][row]` |
| Show board | `show` |
| Rules | `rules` |
| Help | `help` |
| Pieces legend | `legend` |
| History | `history` |
| Step back | `stepback` |
| List pieces | `captured` |
| Exit | `exit` |

Please visit our [User Guide](https://ay2324s1-cs2113-t18-1.github.io/tp/UserGuide.html) for further details on each
of these commands.

## Contributing

[![Contributors](https://img.shields.io/github/contributors/AY2324S1-CS2113-T18-1/tp?label=Contributors&style=flat-square)](https://github.com/AY2324S1-CS2113-T18-1/tp/graphs/contributors)
[![Commits](https://img.shields.io/github/commits-since/AY2324S1-CS2113-T18-1/tp/latest?style=flat-square&label=Commits%20since%20v2.0)](https://github.com/AY2324S1-CS2113-T18-1/tp/commits/master)
[![Issues](https://img.shields.io/github/issues/AY2324S1-CS2113-T18-1/tp?style=flat-square&label=Latest%20issues)](https://github.com/AY2324S1-CS2113-T18-1/tp/issues)
[![PRs](https://img.shields.io/github/issues-pr/AY2324S1-CS2113-T18-1/tp?style=flat-square&label=Pull%20requests)](https://github.com/AY2324S1-CS2113-T18-1/tp/pulls)


All contributions are greatly appreciated! If you have a suggestion that would make this better,
please fork the repo and create a pull request.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/branch-FeatureName`)
3. Commit your Changes (`git commit -m 'Add some FeatureName'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## Contact

Please visit our [About Us](https://ay2324s1-cs2113-t18-1.github.io/tp/AboutUs.html) page for further contact
information.

Project Link: [https://github.com/AY2324S1-CS2113-T18-1/tp](https://github.com/AY2324S1-CS2113-T18-1/tp)
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ test {
}

application {
mainClass.set("seedu.duke.Duke")
mainClass.set("chessmaster.ChessMaster")
}

shadowJar {
archiveBaseName.set("duke")
archiveBaseName.set("chessmaster")
archiveClassifier.set("")
}

Expand All @@ -43,4 +43,11 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}

compileJava.options.encoding = 'UTF-8'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
35 changes: 35 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<project name="ChessMaster" basedir="." default="main">

<property name="src.dir" value="src/main/java"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="main-class" value="chessmaster.ChessMaster"/>

<target name="clean">
<delete dir="${build.dir}"/>
</target>

<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac includeantruntime="false" target="11" source="11" encoding="utf8" srcdir="${src.dir}" destdir="${classes.dir}"/>
</target>

<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>

<target name="run" depends="jar">
<java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
</target>

<target name="clean-build" depends="clean,jar"/>

<target name="main" depends="clean,run"/>

</project>
6 changes: 6 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@
<property name="throwsIndent" value="8" />
</module>

<module name="WhitespaceAround">
<property name="allowEmptyLambdas" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyMethods" value="true"/>
</module>

<module name="NoWhitespaceBeforeCaseDefaultColon"/>

<!--
Expand Down
14 changes: 7 additions & 7 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# About us

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
| Name | ID | Github |
|--------------------------------------|-----------|---------------|
| [Antriksh Dhand](team/antrikshdhand.md) | A0278458J | antrikshdhand |
| [Oh Ken Wei](team/ken-ruster.md) | A0251850J | ken-ruster |
| [Ou Ningxiang ](team/onx001.md) | A0249445W | onx001 |
| [Tong Zheng Hong](team/tongzhenghong.md) | A0251819Y | TongZhengHong |
| [Tricia Boo Koh](team/triciabk.md) | A0264665U | TriciaBK |
Loading
Loading