Overview
| SHA1 Hash: | 3e342af26cbb748ad1e93710c54e519849938ef2 | 
|---|---|
| Date: | 2012-07-14 16:58:45 | 
| User: | kinaba | 
| Comment: | long score. | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Diffs: | redesign | 
| Downloads: | Tarball | ZIP archive | 
| Other Links: | files | file ages | manifest | 
Tags And Properties
- branch=trunk inherited from [16f0b5784f]
 - sym-trunk inherited from [16f0b5784f]
 
Changes
Modified game.d from [700e6bf10300d920] to [e8c7d41c69c50305].
327 327 328 int turn = 0; 328 int turn = 0; 329 bool dead = false; 329 bool dead = false; 330 int lambda = 0; 330 int lambda = 0; 331 int exit_bonus = 0; 331 int exit_bonus = 0; 332 int under_warter = 0; 332 int under_warter = 0; 333 @property { 333 @property { 334 int score() { return lambda*25*(1+exit_bonus) - turn; } | 334 long score() { return lambda*25L*(1+exit_bonus) - turn; } 335 int water_level() { return water.level(turn); } 335 int water_level() { return water.level(turn); } 336 int water_until_rise() { return water.until_rise(turn); } 336 int water_until_rise() { return water.until_rise(turn); } 337 bool cleared() { return exit_bonus>0; } 337 bool cleared() { return exit_bonus>0; } 338 int hp() { return map.waterproof - under_warter; } 338 int hp() { return map.waterproof - under_warter; } > 339 long score_if_abort_now() { return lambda*25*(1+max(1,exit_bonus 339 } 340 } 340 } 341 } 341 342 342 unittest 343 unittest 343 { 344 { 344 Game.load(["###","...","#RL"], ["xxx":"yyy"]); 345 Game.load(["###","...","#RL"], ["xxx":"yyy"]); 345 } 346 }