Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
windbot
Commits
56e9787b
Commit
56e9787b
authored
Aug 10, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update log
parent
0c980e1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Game/GameBehavior.cs
Game/GameBehavior.cs
+2
-2
Logger.cs
Logger.cs
+3
-3
No files found.
Game/GameBehavior.cs
View file @
56e9787b
...
@@ -253,7 +253,7 @@ namespace WindBot.Game
...
@@ -253,7 +253,7 @@ namespace WindBot.Game
extra
=
packet
.
ReadInt16
();
extra
=
packet
.
ReadInt16
();
_duel
.
Fields
[
GetLocalPlayer
(
1
)].
Init
(
deck
,
extra
);
_duel
.
Fields
[
GetLocalPlayer
(
1
)].
Init
(
deck
,
extra
);
Logger
.
WriteLine
(
"Duel started: "
+
_room
.
Names
[
0
]
+
" versus "
+
_room
.
Names
[
1
]);
Logger
.
Debug
WriteLine
(
"Duel started: "
+
_room
.
Names
[
0
]
+
" versus "
+
_room
.
Names
[
1
]);
_ai
.
OnStart
();
_ai
.
OnStart
();
}
}
...
@@ -263,7 +263,7 @@ namespace WindBot.Game
...
@@ -263,7 +263,7 @@ namespace WindBot.Game
string
otherName
=
_room
.
Position
==
0
?
_room
.
Names
[
1
]
:
_room
.
Names
[
0
];
string
otherName
=
_room
.
Position
==
0
?
_room
.
Names
[
1
]
:
_room
.
Names
[
0
];
string
textResult
=
(
result
==
2
?
"Draw"
:
result
==
0
?
"Win"
:
"Lose"
);
string
textResult
=
(
result
==
2
?
"Draw"
:
result
==
0
?
"Win"
:
"Lose"
);
Logger
.
WriteLine
(
"Duel finished against "
+
otherName
+
", result: "
+
textResult
);
Logger
.
Debug
WriteLine
(
"Duel finished against "
+
otherName
+
", result: "
+
textResult
);
}
}
private
void
OnDraw
(
BinaryReader
packet
)
private
void
OnDraw
(
BinaryReader
packet
)
...
...
Logger.cs
View file @
56e9787b
...
@@ -6,16 +6,16 @@ namespace WindBot
...
@@ -6,16 +6,16 @@ namespace WindBot
{
{
public
static
void
WriteLine
(
string
message
)
public
static
void
WriteLine
(
string
message
)
{
{
Console
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
)
+
"] "
+
message
);
Console
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"
yy-MM-dd
HH:mm:ss"
)
+
"] "
+
message
);
}
}
public
static
void
DebugWriteLine
(
string
message
)
public
static
void
DebugWriteLine
(
string
message
)
{
{
if
(
Program
.
DebugMode
)
if
(
Program
.
DebugMode
)
Console
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
)
+
"] "
+
message
);
Console
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"
yy-MM-dd
HH:mm:ss"
)
+
"] "
+
message
);
}
}
public
static
void
WriteErrorLine
(
string
message
)
public
static
void
WriteErrorLine
(
string
message
)
{
{
Console
.
Error
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
)
+
"] "
+
message
);
Console
.
Error
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"
yy-MM-dd
HH:mm:ss"
)
+
"] "
+
message
);
}
}
}
}
}
}
\ No newline at end of file
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