Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
game-chess
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
platzhalter-tabletop
game-chess
Compare revisions
9119eb43f85dd1cf808c2050d3cab907d6edf905 to e9aec7d39754e9feed8ddff04f76062d67880629
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
platzhalter-tabletop/game-chess
Select target project
No results found
e9aec7d39754e9feed8ddff04f76062d67880629
Select Git revision
Swap
Target
platzhalter-tabletop/game-chess
Select target project
platzhalter-tabletop/game-chess
1 result
9119eb43f85dd1cf808c2050d3cab907d6edf905
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
fix klemmpunkt rotation of white knight
· 4c2a7a13
Lukas Schauer
authored
2 years ago
4c2a7a13
set static flag for checkerboard
· e9aec7d3
Lukas Schauer
authored
2 years ago
e9aec7d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
chess.py
+2
-2
2 additions, 2 deletions
chess.py
with
2 additions
and
2 deletions
chess.py
View file @
e9aec7d3
...
...
@@ -110,8 +110,7 @@ async def main():
"
klemmpunkte
"
:
[{
'
polarity
'
:
1
,
'
position
'
:
{
"
x
"
:
0
,
"
y
"
:
0
,
"
z
"
:
0
},
'
rotation
'
:
{
"
x
"
:
0
,
"
y
"
:
0
,
"
z
"
:
0
},
'
rotation
'
:
{
"
x
"
:
0
,
"
y
"
:
0
,
"
z
"
:
3.14159265
},
'
rotation
'
:
{
"
x
"
:
0
,
"
y
"
:
3.14159265
if
obj
==
"
knight-white
"
else
0
,
"
z
"
:
3.14159265
},
}],
}))
...
...
@@ -147,6 +146,7 @@ async def main():
await
websocket
.
send
(
json
.
dumps
({
"
type
"
:
"
object-get
"
,
"
reference
"
:
f
"
{
msg
[
'
object
'
][
'
name
'
]
}
-
{
i
}
"
,
"
static
"
:
bool
(
msg
[
'
object
'
][
'
name
'
]
==
"
checkerboard
"
),
"
object
"
:
msg
[
"
object
"
][
"
id
"
],
"
position
"
:
positions
[
f
"
{
msg
[
'
object
'
][
'
name
'
]
}
-
{
i
}
"
],
"
rotation
"
:
rotations
[
f
"
{
msg
[
'
object
'
][
'
name
'
]
}
-
{
i
}
"
]
if
f
"
{
msg
[
'
object
'
][
'
name
'
]
}
-
{
i
}
"
in
rotations
else
{
'
x
'
:
0
,
'
y
'
:
0
,
'
z
'
:
0
},
...
...
This diff is collapsed.
Click to expand it.