Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Dev #1

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
a
Alon Genosar committed Aug 15, 2019
commit 10e3dd5fdd7e518d9557f66c4dd951f88a73851e
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -18,5 +18,6 @@ module.exports = { master_public_address: process.env.hasOwnProperty('master_pub
bad_card_symbol_index: 1,
total_bad_card_pairs: 1,
flipped_card_symbol_index: 0,
transaction_experation_in_sec: 10
transaction_experation_in_sec: 10,

};
4 changes: 2 additions & 2 deletions game/gameEngine.js
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ module.exports = {
setTimeout( async function() {
let result = await module.exports.doAction({action:actions.RESULT,callerId:callerId})
gameEmit( { gameId:game.id,action:actions.RESULT, value:result,callerId:callerId } )
}, 500);
}, 100);
}
return { position:value, symbol:game.board[value]}

@@ -176,7 +176,7 @@ module.exports = {
let result = await module.exports.doAction({action:actions.WIN,callerId:callerId})
gameEmit( { gameId:game.id,action:actions.WIN, value:result } )
}
}, 500);
}, 2000);
return { match:match, callerId:callerId, positions:game.flipped,player:p}

//