Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Quentin Vrel
projet-cdaw
Commits
91dd9776
Commit
91dd9776
authored
Dec 03, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gvipers.imt-lille-douai.fr/QVrel/projet-cdaw
parents
a05dfbe1
64bf6542
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
122 deletions
+122
-122
mj-tuiles.js
frontend/src/utils/mj-tuiles.js
+122
-122
No files found.
frontend/src/utils/mj-tuiles.js
View file @
91dd9776
...
...
@@ -33,9 +33,9 @@ const TILE_NAMES = {
"31"
:
"green dragon"
,
"32"
:
"red dragon"
,
"33"
:
"white dragon"
};
};
const
TILE_CODES
=
{
const
TILE_CODES
=
{
"0"
:
"b1"
,
"1"
:
"b2"
,
"2"
:
"b3"
,
...
...
@@ -70,9 +70,9 @@ const TILE_NAMES = {
"31"
:
"F"
,
"32"
:
"C"
,
"33"
:
"P"
};
};
const
TILE_GLYPHS
=
{
const
TILE_GLYPHS
=
{
"0"
:
"Sou1.svg"
,
"1"
:
"Sou2.svg"
,
"2"
:
"Sou3.svg"
,
...
...
@@ -100,28 +100,28 @@ const TILE_NAMES = {
"24"
:
"Pin7.svg"
,
"25"
:
"Pin8.svg"
,
"26"
:
"Pin9.svg"
,
"27"
:
"
"
,
"28"
:
"
"
,
"29"
:
"
"
,
"30"
:
"
"
,
"31"
:
"
"
,
"32"
:
"
"
,
"33"
:
""
,
};
"27"
:
"Ton.svg
"
,
"28"
:
"Nan.svg
"
,
"29"
:
"Shaa.svg
"
,
"30"
:
"Pei.svg
"
,
"31"
:
"Hatsu.svg
"
,
"32"
:
"Chun.svg
"
,
"33"
:
"Haku.svg"
};
const
SUIT_NAMES
=
{
const
SUIT_NAMES
=
{
"0"
:
"bamboo"
,
"1"
:
"characters"
,
"2"
:
"dots"
,
"3"
:
"winds"
,
"4"
:
"dragons"
};
};
if
(
typeof
module
!==
"undefined"
&&
module
.
exports
)
{
if
(
typeof
module
!==
"undefined"
&&
module
.
exports
)
{
module
.
exports
=
{
TILE_NAMES
,
TILE_CODES
,
TILE_GLYPHS
,
SUIT_NAMES
};
}
\ No newline at end of file
}
\ 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