Commit graph

56 commits

Author SHA1 Message Date
Manuel Thalmann 5ce44a8d93 Add predefined suiweb 2022-12-15 22:09:02 +01:00
Manuel Thalmann 8f488f48bd Adjust SuiWeb according to the standards
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 21:53:30 +01:00
Manuel Thalmann dedf7886e5 Nest function parameters into objects 2022-12-15 21:42:21 +01:00
Manuel Thalmann e5fddf7a7d Align the chips properly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 18:39:32 +01:00
Manuel Thalmann 194acdaea3 Make the board shrink based on the height 2022-12-15 18:39:11 +01:00
Manuel Thalmann aeeff83e01
Allow moves to be undone
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 18:16:08 +01:00
Manuel Thalmann 21d940d3ea
Remove unnecessary code 2022-12-15 14:33:42 +01:00
Manuel Thalmann c091e5c808
Minify code 2022-12-15 14:29:07 +01:00
Manuel Thalmann 023c725aae
Set class if someone wins
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 14:21:43 +01:00
Manuel Thalmann 30cbc40d38
Move all click handlers to the App 2022-12-15 14:17:11 +01:00
Manuel Thalmann 80b55732e7
Move all click events to Component.js 2022-12-15 13:47:23 +01:00
Manuel Thalmann 1e47864ee2
Remove obsolete files 2022-12-15 12:02:53 +01:00
Manuel Thalmann cd88607ad3
Add an event handler for the click event 2022-12-15 11:52:17 +01:00
Manuel Thalmann e6cea57d65
Store state as an object 2022-12-15 11:51:59 +01:00
Manuel Thalmann c94dc1cb8f
Refactor the ElementDescriptor type 2022-12-15 10:55:46 +01:00
Manuel Thalmann 5ff474a7ea
Nest render function in separate class
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 10:09:22 +01:00
Manuel Thalmann babdc6104e
Rename SJDON to SuiWeb 2022-12-15 10:07:48 +01:00
Manuel Thalmann 6beda8d14f
Render game using SJDON 2022-12-15 10:06:49 +01:00
Manuel Thalmann 7b765db827
Add currentPlayer property to Game class 2022-12-15 10:04:00 +01:00
Manuel Thalmann 8020d30d6b
Add a message if someone wins
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 01:16:28 +01:00
Manuel Thalmann 05c935d3fa
Only allow moves if there is no winner 2022-12-15 01:13:49 +01:00
Manuel Thalmann de2884c16d
Add a method for checking whether there is a winner 2022-12-15 01:13:18 +01:00
Manuel Thalmann 9107c557af
Store game in localStorage
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 01:02:20 +01:00
Manuel Thalmann e34ae6d1c3
Roll back to single workspace environment 2022-12-15 00:57:54 +01:00
Manuel Thalmann ce72afb8ed
Move website to separate subdirectory 2022-12-13 18:21:38 +01:00
Manuel Thalmann d88e3a7ac8
Add margin to board class
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-13 12:55:50 +01:00
Manuel Thalmann f0fb5a11fe
Add a log message 2022-12-13 12:55:39 +01:00
Manuel Thalmann 0794aaf8fb
Nest board in a separate element 2022-12-13 12:54:49 +01:00
Manuel Thalmann fb51f48a02
Add a method for adding chips 2022-12-13 11:28:59 +01:00
Manuel Thalmann 391edbed72
Adjust variable names for better understanding 2022-12-13 11:28:48 +01:00
Manuel Thalmann be4956f360
Allow dynamic creation of game states 2022-12-13 11:20:21 +01:00
Manuel Thalmann 87f078da13
Make board size dynamic 2022-12-13 11:18:23 +01:00
Manuel Thalmann 2cf011ed03
Store the board size as static variables 2022-12-13 11:12:06 +01:00
Manuel Thalmann 7950572ede
Add a button for resetting the game 2022-12-13 11:08:52 +01:00
Manuel Thalmann ba28926219
Add a method for resetting the game 2022-12-13 11:05:20 +01:00
Manuel Thalmann 63bfb5375e
Create a dedicated draw method 2022-12-13 11:04:17 +01:00
Manuel Thalmann 6faeae8b66
Store the id of the board in the Game class 2022-12-13 11:02:56 +01:00
Manuel Thalmann f542319b43
Move initialization code to Game class 2022-12-13 11:00:26 +01:00
Manuel Thalmann 5b46328d37
Store game state in Game class 2022-12-13 10:51:36 +01:00
Manuel Thalmann 8119440db0
Change indentation to spaces 2022-12-13 10:34:07 +01:00
Manuel Thalmann f3a9568f70 Store the current player in the State
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-11 22:55:03 +01:00
Manuel Thalmann aa1af7a9b8 Remove test components
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-10 00:36:43 +01:00
Manuel Thalmann 9c9504363d
Repeatedly update game board
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-08 15:08:02 +01:00
Manuel Thalmann f36b60b2e4
Simplify accessability of player names 2022-12-08 15:07:50 +01:00
Manuel Thalmann 480a77ff86
Move state to a separate file 2022-12-08 14:32:09 +01:00
Manuel Thalmann 8269daa423
Remove test code 2022-12-08 13:31:04 +01:00
Manuel Thalmann 4717a6e4e9
Add code for automatically creating game board
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-07 22:24:48 +01:00
Manuel Thalmann 6e6eceab2b
Use strict equality checks 2022-12-07 22:19:07 +01:00
Manuel Thalmann aaac8f1912
Fix design of Connect4 board
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-06 13:52:25 +01:00
Manuel Thalmann 0b5cffb9d9
Move styles to a separate file 2022-12-06 13:20:00 +01:00