-
Notifications
You must be signed in to change notification settings - Fork 18
New Features v7
- status: complete
- version: 7.x
-
Single-player template: added a single-player game template with one logic hosting all clients in a classic "Guess the Number" game.
-
Improved CSV support: CSV files are automatically updated and new options to flatten items and group them before saving to file system. Example:
memory.save('ultimatum.csv', { // Merge items together. flatten: true, // One row per player.. flattenByGroup: 'player', // Adds updates to same file for every round. updatesOnly: true });
-
Improved reconnect support: improved default reconnection mechanism:
- role and partner automatically set,
- default reconnect callback resends game messages from same step.
-
Client Timer API reworked: simpler and more powerful API to create random events, including probabilistic events. Example:
node.timer.random(3000, 7000).prob(0.2).done();
-
New Game methods: new Game methods to get references to current stage/step id and number and to compare it against other ids or game-stage objects:
isStep
,isStage
,isRound
,isWidgetStep
,getStepId
,getStageId
. -
Improved Widgets: several improvements including:
- Auto-scroll into widgets requiring user action,
- Required widgets which are still requiring user action can now block the node.done procedure also outside of widget-steps,
- New method:
Widget.isActionRequired
, - New risk-elicitation widget: Bomb method.
-
Server improvements:
- Port can be specified via command-line.
- GameRoom API extended with new method
updateWin
and more options available for methodcomputeBonus
. - Channels can be disabled in channel.settings.js file.
-
Miscellaneous:
- Role, partner, and session automatically added to every database entry.
- Window: auto-scroll up when loading a new frame.
- Errors messages from clients are automatically printed to console.
- Stefano Balietti ste@nodegame.org
Special thanks to Arjen Stolk for bug reporting and features discussion.
Next: Migrating to v7
Go back to the wiki Home.
Copyright (C) 2021 Stefano Balietti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.