File tree Expand file tree Collapse file tree
test/hyperspace/test/library Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 player (circle-X-any-circle bullet players)]
6161 (cond
6262 (> counter max-cycle) [world nil ]
63- planet [world ( :position planet) ]
64- player [(kill-player world player) ( :position player) ]
63+ planet [world planet]
64+ player [(kill-player world player) player]
6565 :else (recur bullet (+ counter 1 )))))))
Original file line number Diff line number Diff line change 1- (ns hyperspace.test.library.sumulation
1+ (ns hyperspace.test.library.simulation
22 (:use [hyperspace.library.simulation]
33 [hyperspace.test.checkers]
44 [midje.sweet])
5151 result-player2 (assoc player2-fixture :status :dead )
5252 result-world (assoc two-player-world-fixture :players [player-fixture result-player2])]
5353 (fire two-player-world-fixture player-fixture heading 10 )
54- => [result-world ( :position player2-fixture) ])
54+ => [result-world player2-fixture])
5555 ; ; TODO: test shot to planet
5656 (fire world-fixture player-fixture 0 10 ) => [world-fixture nil ])
You can’t perform that action at this time.
0 commit comments