<commit_before>﻿var Game = require('../game.js');

// verify that a game is empty upon creation
// verify that a game can't be started with fewer than 3 players
// verify that a game can't be restarted after it's been started
<commit_msg>doc'n of intended test behavior to implement on other computer<commit_after>﻿var Game = require('../game.js');

// game verbs: join, leave, answer (a black card), vote (for a white card), new round
// game states: pre-start, awaiting answers, awaiting vote, awaiting new round, finished

// pre-start:
//   join works iff game is not full
//   leave works
//   answer fails
//   vote fails
//   new round works iff there are >= 3 players, state transition to awaiting answers

// awaiting answers:
//   join works - player becomes non-czar and can submit answer for active round
//   leave works:
//     if player is card czar, round is discarded;
//     behavior if player count is now < 3 tbd
//   answer works iff the answering player isn't the card czar and hasn't answered
//   vote fails
//   new round fails

// awaiting vote:
//   join works - player becomes non-czar and doesn't get to answer
//   leave works:
//     if player is card czar, round is discarded;
//     behavior if player count is now < 3 tbd
//   answer fails
//   vote works iff the voting player is the card czar;
//     if a player has won, state transition to finished;
//     otherwise, state transition to awaiting new round
//   new round fails

// awaiting new round:
//   join works - player can become next card czar and answer in next round
//   leave works
//   answer fails
//   vote fails
//   new round works iff there are >= 3 players, state transition to awaiting answers

// finished:
//   join fails
//   leave works
//   answer fails
//   vote fails
//   new round fails
{'fraction_non_alphanumeric': 0.08924611973392461, 'fraction_numerical': 0.002771618625277162, 'mean_word_length': 2.7216494845360826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2834971', 'n_tokens_mistral': 501, 'n_tokens_neox': 472, 'n_words': 257}