+forceNextMoveToBe = (color, board)->
+  oppositeColor = other_color(color)
+  board.moves.push create_pass_move(oppositeColor)
+
 describe 'random_move_generation', ->
   board = null
 

    beforeEach -> board = tiny_game()

    it 'finds the right number of black moves', ->
      board.moves.push create_pass_move(WHITE)
      expect(get_all_plausible_moves(board).length).toEqual 5

    it 'finds the right number of white moves', ->
      board.moves.push create_pass_move(BLACK)
      expect(get_all_plausible_moves(board).length).toEqual 4


  it 'can generate a random move on the first line', ->
    board = small_first_line_board()
    forceNextMoveToBe(BLACK, board)
    old_max_try = MAXIMUM_TRY_MODIFICATOR
    # minimize chances of falsely creating a pass move
    # (false in the context of this spec)
