Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chess-game
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
佚名
chess-game
Commits
f2e984ad
Commit
f2e984ad
authored
Jul 17, 2019
by
佚名
🎅🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: format
parent
8157687b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
Board.js
src/components/Board.js
+1
-1
Square.js
src/components/Square.js
+0
-1
Game.js
src/routes/Game.js
+1
-1
No files found.
src/components/Board.js
View file @
f2e984ad
...
...
@@ -32,4 +32,4 @@ const Board = (props) => {
)
}
export
default
Board
;
\ No newline at end of file
export
default
Board
;
src/components/Square.js
View file @
f2e984ad
import
React
from
'
react
'
;
import
{
Button
}
from
'
./style
'
;
// import './styles/square.css';
const
Square
=
(
props
)
=>
{
return
(
...
...
src/routes/Game.js
View file @
f2e984ad
import
React
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
Board
from
'
../components/Board
'
;
import
style
from
'
./game.css
'
;
import
style
from
'
./game.css
'
;
function
calculateWinner
(
squares
)
{
const
lines
=
[
...
...
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