this repo has no description

fix buggy t-spin by fixing buggy srs #3

merged opened by voigt.tngl.sh targeting main from t-spins
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:6q572hlx7omtsszji5w2fyw3/sh.tangled.repo.pull/3mgnt3woze422
+9 -9
Diff #0
+9 -9
blocks_srs.go
··· 31 31 case 0: // Spawn state 32 32 switch toState { 33 33 case 1: // 0 >> R (clockwise to right) 34 - return []Position{P(0, 0), P(0, -1), P(1, -1), P(-2, 0), P(-2, -1)} 34 + return []Position{P(0, 0), P(0, -1), P(-1, -1), P(2, 0), P(2, -1)} 35 35 case 3: // 0 >> L (counter-clockwise to left) 36 - return []Position{P(0, 0), P(0, 1), P(1, 1), P(-2, 0), P(-2, 1)} 36 + return []Position{P(0, 0), P(0, 1), P(-1, 1), P(2, 0), P(2, 1)} 37 37 } 38 38 case 1: // Right state 39 39 switch toState { 40 40 case 0: // R >> 0 (counter-clockwise to spawn) 41 - return []Position{P(0, 0), P(0, 1), P(-1, 1), P(2, 0), P(2, 1)} 41 + return []Position{P(0, 0), P(0, 1), P(1, 1), P(-2, 0), P(-2, 1)} 42 42 case 2: // R >> 2 (clockwise to inverted) 43 - return []Position{P(0, 0), P(0, 1), P(-1, 1), P(2, 0), P(2, 1)} 43 + return []Position{P(0, 0), P(0, 1), P(1, 1), P(-2, 0), P(-2, 1)} 44 44 } 45 45 case 2: // Inverted state 46 46 switch toState { 47 47 case 1: // 2 >> R (counter-clockwise to right) 48 - return []Position{P(0, 0), P(0, -1), P(1, -1), P(-2, 0), P(-2, -1)} 48 + return []Position{P(0, 0), P(0, -1), P(-1, -1), P(2, 0), P(2, -1)} 49 49 case 3: // 2 >> L (clockwise to left) 50 - return []Position{P(0, 0), P(0, 1), P(1, 1), P(-2, 0), P(-2, 1)} 50 + return []Position{P(0, 0), P(0, 1), P(-1, 1), P(2, 0), P(2, 1)} 51 51 } 52 52 case 3: // Left state 53 53 switch toState { 54 54 case 2: // L >> 2 (counter-clockwise to inverted) 55 - return []Position{P(0, 0), P(0, -1), P(-1, -1), P(2, 0), P(2, -1)} 55 + return []Position{P(0, 0), P(0, -1), P(1, -1), P(-2, 0), P(-2, -1)} 56 56 case 0: // L >> 0 (clockwise to spawn) 57 - return []Position{P(0, 0), P(0, -1), P(-1, -1), P(2, 0), P(2, -1)} 57 + return []Position{P(0, 0), P(0, -1), P(1, -1), P(-2, 0), P(-2, -1)} 58 58 } 59 59 } 60 60 ··· 95 95 case 2: // L >> 2 (counter-clockwise to inverted) 96 96 return []Position{P(0, 0), P(0, -2), P(0, 1), P(1, -2), P(-2, 1)} 97 97 case 0: // L >> 0 (clockwise to spawn) 98 - return []Position{P(0, 0), P(0, 1), P(0, -2), P(-2, 1), P(1, -2)} 98 + return []Position{P(0, 0), P(0, 1), P(0, -2), P(2, 1), P(-1, -2)} 99 99 } 100 100 } 101 101

History

1 round 0 comments
sign up or login to add to the discussion
voigt.tngl.sh submitted #0
1 commit
expand
fix buggy t-spin by fixing buggy srs
expand 0 comments
pull request successfully merged