Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
T
TheGame_AI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
IngInf
TheGame_AI
Commits
267bf95a
Commit
267bf95a
authored
Jul 08, 2020
by
Fabian Jakob Sauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned main class.
parent
8cd7c3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/MainClass.java
src/MainClass.java
+4
-4
No files found.
src/MainClass.java
View file @
267bf95a
...
@@ -19,10 +19,10 @@ public class MainClass {
...
@@ -19,10 +19,10 @@ public class MainClass {
public
static
void
RunSimulation
()
public
static
void
RunSimulation
()
{
{
// USER INPUT
// USER INPUT
int
numGames
=
1
;
int
numGames
=
1
0000
;
Player
p1
=
new
OptimizeTurnPlayerDefault
();
Player
p1
=
new
RandomPlayer
();
Player
p2
=
new
OptimizeTurnPlayer
(
false
);
Player
p2
=
new
OptimizeTurnPlayer
();
Statistics
stats
=
new
Statistics
(
p1
,
p2
);
Statistics
stats
=
new
Statistics
(
p1
,
p2
);
Random
rand
=
new
Random
();
Random
rand
=
new
Random
();
...
@@ -60,7 +60,7 @@ public class MainClass {
...
@@ -60,7 +60,7 @@ public class MainClass {
Player
winner
=
game
.
simulate
();
// run games simulation
Player
winner
=
game
.
simulate
();
// run games simulation
//game.getHistory().printHistory();
//game.getHistory().printHistory();
stats
.
TrackGame
(
winner
,
game
.
getHistory
());
stats
.
TrackGame
(
winner
,
game
.
getHistory
());
System
.
out
.
println
(
p1
.
getName
()
+
": "
+
((
OptimizeTurnPlayerDefault
)
p1
).
GetCntTurns
()
+
" | "
+
p2
.
getName
()
+
": "
+((
OptimizeTurnPlayer
)
p2
).
GetCntTurns
());
//
System.out.println(p1.getName() + ": " + ((OptimizeTurnPlayerDefault)p1).GetCntTurns() + " | " +p2.getName() + ": " +((OptimizeTurnPlayer)p2).GetCntTurns());
}
}
stats
.
PrintStats
();
stats
.
PrintStats
();
...
...
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