You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/main.go
+10-22Lines changed: 10 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,8 @@ func main() {
121
121
EndedLast: -1,
122
122
RoundOver: false,
123
123
Gameover: false}
124
-
SetupTable(i) // Initialize each table with a new deck and shuffle it
124
+
setUpTable(i) // Initialize each table with a new deck and shuffle it
125
+
updateLobby(i) // Update the lobby with the initial state of each table
125
126
}
126
127
127
128
router:=gin.Default()
@@ -132,7 +133,6 @@ func main() {
132
133
router.GET("/join", joinTable) // Join a table
133
134
router.GET("/start", StartNewGame) // start a new game on a table (this also happens automaticly when the table is filled with players), if the table is not filled it will fill the emplty slots with AI Players
134
135
router.GET("/move", doVaildMoveURL) // Make a move on the table (play, fold, draw)
135
-
router.GET("/updateLobby", apiUpdateLobby)
136
136
137
137
// Set up router and start server
138
138
router.SetTrustedProxies(nil) // Disable trusted proxies because Gin told me to do it.. (neeed to investigate this further)
0 commit comments