Table of Contents - berlin-ai-0.0.39 Documentation
Classes and Modules
- Berlin
- Berlin::AI
- Berlin::AI::Game
- Berlin::AI::Game::Internal
- Berlin::AI::Game::Internal::ClassMethods
- Berlin::AI::Map
- Berlin::AI::Map::Internal
- Berlin::AI::Map::Internal::ClassMethods
- Berlin::AI::Node
- Berlin::AI::Node::Internal
- Berlin::AI::Node::Internal::ClassMethods
- Berlin::AI::Player
- Berlin::Fake
- Berlin::Fake::Display
- Berlin::Fake::Game
- Berlin::Fake::Random
- Berlin::Fake::State
- MapTest
- NodeTest
- Object
Methods
- ::included — Berlin::AI::Game::Internal
- ::included — Berlin::AI::Map::Internal
- ::included — Berlin::AI::Node::Internal
- ::new — Berlin::Fake::Display
- ::new — Berlin::Fake::State
- ::new — Berlin::Fake::Game
- ::new — Berlin::AI::Map::Internal
- ::new — Berlin::AI::Node::Internal
- ::on_turn — Berlin::Fake::Random
- ::on_turn — Berlin::AI::Player
- #== — Berlin::AI::Node::Internal
- #add_move — Berlin::AI::Game
- #adjacent? — Berlin::AI::Node
- #adjacent_nodes — Berlin::AI::Node
- #adjacent_nodes_and_self — Berlin::AI::Node
- #apply_moves — Berlin::Fake::State
- #as_display — Berlin::Fake::Display
- #as_json — Berlin::Fake::State
- #buffer_moves — Berlin::Fake::Game
- #color — Berlin::Fake::Display
- #controlled_nodes — Berlin::AI::Map
- #create_or_update — Berlin::AI::Game::Internal::ClassMethods
- #directed? — Berlin::AI::Map
- #draw_line — Berlin::Fake::Display
- #enemy? — Berlin::AI::Node
- #enemy_nodes — Berlin::AI::Map
- #foreign? — Berlin::AI::Node
- #foreign_nodes — Berlin::AI::Map
- #free? — Berlin::AI::Node
- #free_nodes — Berlin::AI::Map
- #generate_moves — Berlin::Fake::Game
- #inspect — Berlin::Fake::State
- #link_to — Berlin::AI::Node::Internal
- #log — Object
- #map_definition — Berlin::Fake::Game
- #mine? — Berlin::AI::Node
- #node_position — Berlin::Fake::Display
- #nodes — Berlin::AI::Map
- #nodes_as_display — Berlin::Fake::Display
- #occupied? — Berlin::AI::Node
- #owned? — Berlin::AI::Node
- #owned_by? — Berlin::AI::Node
- #owned_nodes — Berlin::AI::Map
- #parse — Berlin::AI::Map::Internal::ClassMethods
- #parse — Berlin::AI::Node::Internal::ClassMethods
- #paths_as_display — Berlin::Fake::Display
- #pause — Berlin::Fake::Game
- #range — Berlin::Fake::Display
- #remove_soldiers — Berlin::Fake::State
- #replace — Berlin::Fake::Display
- #reset! — Berlin::AI::Game::Internal
- #reset! — Berlin::AI::Node::Internal
- #run — Berlin::Fake::Game
- #setup — MapTest
- #spawn — Berlin::Fake::State
- #spawn — Berlin::Fake::Game
- #test_adjacent_returns_weither_or_not_a_node_is_adjacent — NodeTest
- #test_controlled_nodes_returns_an_array_of_owned_nodes_with_at_least_one_soldier — MapTest
- #test_enemy_nodes_returns_an_array_of_nodes_owned_by_other_players — MapTest
- #test_equals_returns_true_if_two_nodes_have_the_same_id — NodeTest
- #test_foreign_nodes_returns_an_array_of_nodes_that_the_current_player_does_not_owned — MapTest
- #test_foreign_returns_true_you_do_not_own_the_node — NodeTest
- #test_free_nodes_returns_an_array_of_free_nodes — MapTest
- #test_free_returns_true_if_the_node_is_not_owned_by_any_player — NodeTest
- #test_mine_returns_true_if_owned_by_current_player — NodeTest
- #test_nodes_returns_an_array_of_all_nodes — MapTest
- #test_occupied_returns_true_if_the_node_has_at_least_one_soldier — NodeTest
- #test_owned_by_returns_true_if_owned_by_the_provided_player — NodeTest
- #test_owned_nodes_returns_an_array_of_owned_nodes_for_current_player — MapTest
- #test_reset_resets_all_turn_relative_data — NodeTest
- #to_i — Berlin::AI::Node::Internal
- #to_s — Berlin::AI::Node::Internal
- #turn — Berlin::Fake::Game
- #update — Berlin::AI::Game::Internal
- #update — Berlin::AI::Map::Internal
- #winner? — Berlin::Fake::State