Switch branches/tags
Nothing to show
Commits on Jan 28, 2012
  1. Test framework reworking. Tests should be ported to new framework.

    kevroletin committed Jan 28, 2012
    To help with porting of tests t/ was created.
    Example of new tests format can be found in t/lobby/complicated.t
    Ecample of new diff feature can be found in t/internal/diff.t
    After writing and maintaining of some tests we desided to mix our
    approach(hooks) with approach of Terentyev/Nazarov team(recursive diffing).
    Hooks was changed - now we have 2 hooks 'before_req' and 'after_resp' (but before check);
    Diff approach was extended - we can insert subroutines in 2nd data structure: it will we executed with
    corresponding data from 1st data structere. For example
    $_ = sub {
        my ($data, $result, $method) = @_;
        $res->{ok} = perform_check_with( $data, $method );
        $res->{msg} = "explanation of fail";
        return $res->{ok} #will owerride $res->{ok}
    $a = {1 => [1, 2]};
    $b = {1 => $_ };
    Tester::Diff::compare($a, $b, 'EXACT')->errors_report(0)
    $_ will recieve array [1, 2] as $data;
    Parameter $method should be undef of string: currently only one value 'EXACT' will affect matching: it will
    check existense not only of all keys of hash $b in hash $a but also vice versa.
  2. Merge some fixes from 'fix_compatibility' which don't broke our tests.

    kevroletin committed Jan 28, 2012
    Next task is ai development. Ai development require refactoring of existing code. Before refactoring we should create big tests set. Before creationg of big test suite we should fix compatibility and rework testing framework to
    quick test development and reworking.
Commits on Jan 27, 2012
  1. aiJoin

    kevroletin committed Jan 27, 2012
Commits on Jan 26, 2012
  1. Throw dice (draft)

    kevroletin committed Jan 26, 2012
Commits on Jan 25, 2012
  1. Compatibility changes. Most of game login now works.

    kevroletin committed Jan 25, 2012
    Logic of half of races & powers don't work. Thorow dice and random numbers not implemented.
Commits on Jan 20, 2012
  1. Compability with 00_Protocol tests. loadState is broken.

    kevroletin committed Jan 20, 2012
    Added {send,get}Messages actions.
    Region numeration changed (not starting with 0) + changed all tests.
    Fixed error messages with undefined fields in response.
    Added extra check for Regions.
    Since loadState is big feature and supported only by our team issues with broken loadState will be fixed
    later. Issues with compatibility are more important.
Commits on Jan 18, 2012
  1. Drawing of extra tokens on map: both client/server modifications. Add…

    kevroletin committed Jan 18, 2012
    …ed mode for creating new
    game. Fixed explore map mode.
Commits on Jan 15, 2012
  1. Workaround to fix problem with numeration of tokens.

    kevroletin committed Jan 15, 2012
    Another's tokens numerations is started from 1 but our numeration is from 0. To solve we simply substruct 1 from index when accessing array of tokens (now only in compability mode)
  2. Compability changes and haks.

    kevroletin committed Jan 15, 2012
    -imported default maps
    -automatic join created game
    -possibility to create token bages from setReadinessStatus command
    -renamed: badSid => badUserSid
              badGameStage => badStage
    -changes badStage to badGameState in setReadinessStatus action
    -hack for changing numeration of region numbers from 0 in defauld maps in foreing tests
    Problems with compability:
    -incorrect another's tests
    -undreadable another's tests
    -undocumented features such as statistic in finishTurn command
    -undocumented enums such as gameStage or regionId
    Compability will be fixed later(may be). Concentrate on client and AI development.
Commits on Jan 13, 2012
Commits on Jan 11, 2012
  1. Background for regions + improvements of modes on client

    kevroletin committed Jan 11, 2012
    Modes become dufficult feature. Now it's dufficult to manage modes dependencies. 1st step to debug modes is UI modes log. Next step can be dumping dependecies to graphviz.
    Added force function for minor modes. force == enable + disabling of all modes which are prevent enabling of current mode(avaible_if.not_minor_mod).
    Removed "startMoving" game state from server
    Move tokens from regions to hand before conquer
Commits on Dec 9, 2011
  1. UI: defend

    kevroletin committed Dec 9, 2011
Commits on Dec 8, 2011
  1. Action loadGameState.

    kevroletin committed Dec 8, 2011
    Load game state should load game state using output of command "gameGameState". Introduced method to test loadGameState: before sending of each test request we
    will reload server, register and login users, upload map, and then load game.
Commits on Dec 5, 2011
  1. Reworks in representation of getGameState in ui: if game is not start…

    kevroletin committed Dec 5, 2011
    …ed getGameInfo used else getGameInfo used.
Commits on Dec 4, 2011
  1. Players information added to ui.

    kevroletin committed Dec 4, 2011
    There is confusing situation with getGameInfo and getGameState commands. getGameState command returns only information which can be changes only during gameplay.
    getGameInfo return full information about game (including players names and ...). getGameInfo should be pulled to server while game is not started. After game
    started getGameState should be user to request server about changes in game state.
Commits on Dec 2, 2011
  1. Moving from jQuery to d3.js

    kevroletin committed Dec 2, 2011
Commits on Nov 25, 2011
  1. Fixed client url and static files serving. Added "explore game" ui mo…

    kevroletin committed Nov 25, 2011
    …de for viewing information about selected game.
Commits on Nov 20, 2011
  1. Ui for getMapList getGameList

    kevroletin committed Nov 20, 2011
  2. Minor ui modes are introduced

    kevroletin committed Nov 20, 2011
  3. Ui modes are introduced

    kevroletin committed Nov 20, 2011
  4. Introduced ui events

    kevroletin committed Nov 20, 2011
Commits on Nov 19, 2011
  1. Starting to write client

    kevroletin committed Nov 19, 2011
Commits on Nov 12, 2011
  1. Power Wealthy

    kevroletin committed Nov 12, 2011
  2. Power Underworld

    kevroletin committed Nov 12, 2011
  3. Power Seafaring

    kevroletin committed Nov 12, 2011
  4. Power Pillaging

    kevroletin committed Nov 12, 2011
  5. Powers Merchant, Mounted

    kevroletin committed Nov 12, 2011
  6. Powers Stout, Hill

    kevroletin committed Nov 12, 2011
Commits on Nov 8, 2011
  1. Power Forest

    kevroletin committed Nov 8, 2011
  2. Power Flying

    kevroletin committed Nov 8, 2011