Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Pentago
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9628055
Pentago
Commits
b6b109e0
Commit
b6b109e0
authored
Apr 11, 2020
by
nargessalehi98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pre-fainal
parent
239e6b1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
Pentago.report.docx
Pentago.report.docx
+0
-0
Pentago.report.pdf
Pentago.report.pdf
+0
-0
Map.java
src/Map.java
+2
-2
No files found.
Pentago.report.docx
0 → 100644
View file @
b6b109e0
File added
Pentago.report.pdf
0 → 100644
View file @
b6b109e0
File added
src/Map.java
View file @
b6b109e0
...
@@ -37,7 +37,7 @@ public class Map {
...
@@ -37,7 +37,7 @@ public class Map {
}
}
/**
/**
* check given line of map that allows player to win - provide game wining rule
* check given line
(horizontal and vertical only)
of map that allows player to win - provide game wining rule
* @param main start point of line
* @param main start point of line
* @param a next disk on the line
* @param a next disk on the line
* @param b next disk on the line
* @param b next disk on the line
...
@@ -72,7 +72,7 @@ public class Map {
...
@@ -72,7 +72,7 @@ public class Map {
if
(
num
==
2
)
if
(
num
==
2
)
return
square2
;
return
square2
;
if
(
num
==
3
)
if
(
num
==
3
)
return
square3
;
return
square3
;
if
(
num
==
4
)
if
(
num
==
4
)
return
square4
;
return
square4
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment