mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-01-18 16:37:40 +01:00
solitaire working (w/o reward)
This commit is contained in:
2
index.js
2
index.js
@@ -4450,7 +4450,7 @@ async function updatePokerPlayersSolve(roomId) {
|
||||
|
||||
app.post('/solitaire/start', async (req, res) => {
|
||||
const userId = req.body.userId;
|
||||
const deck = createDeck();
|
||||
const deck = shuffle(createDeck());
|
||||
const gameState = deal(deck);
|
||||
activeSolitaireGames[userId] = gameState
|
||||
res.json({ success: true, gameState });
|
||||
|
||||
Reference in New Issue
Block a user