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

Renaming according to convention #74

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
94037fd
initial commit
nawarani Aug 11, 2023
d109d74
controller refactored
nawarani Aug 11, 2023
4b7d764
file and rank refactored
nawarani Aug 11, 2023
650508e
precalculated attacks refactored
nawarani Aug 11, 2023
bf3da48
Location bitboard refactored
nawarani Aug 11, 2023
ada93b3
king, knight refactored
nawarani Aug 11, 2023
48baff6
all pieces refactored
nawarani Aug 11, 2023
6e21ba1
calculators refactored
nawarani Aug 11, 2023
6ac70e4
framework refactored
nawarani Aug 11, 2023
b3564c1
halfway through view refactored
nawarani Aug 11, 2023
1add715
All files refactored
nawarani Aug 11, 2023
646c13d
Remaining package name changes.
123Chan Aug 12, 2023
93a8119
Deleted TestForBitboards.java.
123Chan Aug 12, 2023
739c614
Some test naming was left to do
nawarani Aug 12, 2023
920d116
All files, including tests, renamed.
nawarani Aug 12, 2023
b1b7f44
Merge pull request #76 from CSC207-2023Y-UofT/remaining-package
nawarani Aug 12, 2023
f8dbe8e
Deleted testFroBitBoard so it doesn't create merge conflict later.
nawarani Aug 12, 2023
d7377a3
Merge remote-tracking branch 'origin/name3' into name3
nawarani Aug 12, 2023
9a4bc17
Adding use case tests.
123Chan Aug 13, 2023
89003e9
Resolved merge conflicts.
123Chan Aug 13, 2023
0568f25
Merge branch 'name3' into use-case-tests
123Chan Aug 13, 2023
3ae43a0
Merge pull request #80 from CSC207-2023Y-UofT/use-case-tests
123Chan Aug 13, 2023
e5ea7ed
Revert "Use case tests"
123Chan Aug 13, 2023
279ae0c
Merge pull request #82 from CSC207-2023Y-UofT/revert-80-use-case-tests
123Chan Aug 13, 2023
bc07e38
merge conflict resolve attempt 1
nawarani Aug 13, 2023
434c8a2
Merge remote-tracking branch 'origin/name3' into name3
nawarani Aug 13, 2023
8585b63
conflict resolve attempt 2
nawarani Aug 13, 2023
ad4bee6
conflict resolve attempt 3, changed local sdk from coretto to jbr 21
nawarani Aug 13, 2023
ef0a311
merge conflict resolve attempt 4
nawarani Aug 13, 2023
6d6b1dc
Delete src/main/java/Entities/Constants directory
nawarani Aug 13, 2023
2177261
added back the deleted comments
nawarani Aug 13, 2023
7710938
Merge remote-tracking branch 'origin/name3' into name3
nawarani Aug 13, 2023
5a5c296
added back the deleted comments 2
nawarani Aug 13, 2023
a13a6e7
More comments added. Final check required.
nawarani Aug 13, 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
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ It features all common chess mechanisms, including move generation, move validat

- Language: Java
- GUI: Java swing
- Architecture Pattern: Model-View-Controller (MVC)
- Architecture Pattern: Model-View-controller (MVC)
- Board Representation: Bitboard

This project uses MVC pattern to deploy clean architecture. While some interdependency is unavoidable due to the nature of chess as a game, all such dependencies are contained within each layer and adhere to SOLID principles.
Expand Down
Binary file added img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions players.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Anika test,1
2 changes: 1 addition & 1 deletion project_plan_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ When you work on a feature, you are always required to create a **branch** for t
![](images/link_branch.png)


## Merge Feature Branch to Framework_and_Drivers Branch
## Merge Feature Branch to frameworkanddrivers Branch
When you finish working on a feature, you are required to merge the feature branch back to the main branch with a **pull request**.

1. After you make changes to the code and commit them to the feature branch, you will see a **Compare & pull request** button on the repository page. Click it to create a pull request.
Expand Down
71 changes: 0 additions & 71 deletions src/main/java/Entities/Pieces/Queen.java

This file was deleted.

160 changes: 0 additions & 160 deletions src/main/java/Entities/TestForBitboards.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package Controller;

import Use_Cases.HighlightValid;
import Use_Cases.MovePiece;
import Use_Cases.NewGame;
package controller;

import usecases.HighlightValid;
import usecases.MovePiece;
import usecases.NewGame;
/**
* Controller class serves as a coordinator between different use case classes.
* It acts as a bridge, passing information between the classes involved in handling game logic.
Expand Down Expand Up @@ -32,11 +31,11 @@ public Controller(MovePiece movePiece, HighlightValid highlightValid, NewGame ne
*
* @param twoClicks An array containing the indexes of the from and to positions.
*/
public void process_two_clicks(int[] twoClicks) {
public void processTwoClicks(int[] twoClicks) {
long from = 1L << twoClicks[0];
long to = 1L << twoClicks[1];

movePieceClass.move_piece(from, to);
movePieceClass.movePiece(from, to);
}

/**
Expand All @@ -45,15 +44,15 @@ public void process_two_clicks(int[] twoClicks) {
* @param clickIndex The index of the clicked position.
* @return true if there is a valid piece, false otherwise.
*/
public boolean process_highlight(int clickIndex) {
public boolean processHighlight(int clickIndex) {
long clicked = 1L << clickIndex;
return highlightValidClass.create_highlight(clicked);
return highlightValidClass.createHighlight(clicked);
}

/**
* Starts a new game by calling the NewGame use case class.
*/
public void start_new_game() {
newGameClass.start_new_game();
public void startNewGame() {
newGameClass.startNewGame();
}
}
Loading
Loading