cat
/
rect.run
/
clone
ssh
copy
https
copy
a daily shikaku puzzle for phones: one seeded puzzle per date, solved by dragging rectangles
code
commits
branches
reviews
insights
main
all branches
rect.run
/
lib
/
shikaku
/
play_state.ts
history
play_state.ts
291B
blame
history
wrap lines
copy
1
export
type
PlayStatus
=
"in_progress"
|
"solved"
;
2
3
export
function
canRemovePlacedRectangle
(
status
:
PlayStatus
):
boolean
{
4
return
status ===
"in_progress"
;
5
}
6
7
export
function
getStatusTone
(
status
:
PlayStatus
):
"default"
|
"solved"
{
8
return
status ===
"solved"
?
"solved"
:
"default"
;
9
}