-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-bug-caused-by-reachable'
- Loading branch information
Showing
111 changed files
with
1,804 additions
and
3,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The kicks here are for testing. The kicks for artifacts is at [distribution/kicks](/distribution/kicks). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This kick was made by @metallicLurker in PC Gang. | ||
|
||
L.NE=(0,0)(-1,0)(-1,+1)(0,-2)(-1,-2) | ||
L.ES=(0,0)(+1,0)(+1,-1)(0,+2)(+1,+2) | ||
L.SW=(0,0)(+1,0)(+1,+1)(0,-2)(+1,-2) | ||
L.WN=(0,0)(-1,0)(-1,-1)(0,+2)(-1,+2) | ||
|
||
L.NW=(0,0)(+1,0)(+1,+1)(0,-2)(+1,-2) | ||
L.WS=(0,0)(-1,0)(-1,-1)(0,+2)(-1,+2) | ||
L.SE=(0,0)(-1,0)(-1,+1)(0,-2)(-1,-2) | ||
L.EN=(0,0)(+1,0)(+1,-1)(0,+2)(+1,+2) | ||
|
||
L.NS=(0,0)(0,+1) | ||
L.EW=(0,0)(+1,0) | ||
L.SN=(0,0)(0,-1) | ||
L.WE=(0,0)(-1,0) | ||
|
||
J.NE=&L.NE | ||
J.ES=&L.ES | ||
J.SW=&L.SW | ||
J.WN=&L.WN | ||
|
||
J.NW=&L.NW | ||
J.WS=&L.WS | ||
J.SE=&L.SE | ||
J.EN=&L.EN | ||
|
||
J.NS=&L.NS | ||
J.EW=&L.EW | ||
J.SN=&L.SN | ||
J.WE=&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0)(-1,-1)(+2,+2) | ||
I.SE=( 0,+1)(+1,+1)(-2,+1)(+1,-1)(-2,+2) | ||
I.EN=(-1, 0)(+1, 0)(-2, 0)(+1,+1)(-2,-2) | ||
|
||
I.NS=(+1,-1)(+1,0) | ||
I.EW=(-1,-1)(0,-1) | ||
I.SN=(-1,+1)(-1,0) | ||
I.WE=(+1,+1)(0,+1) | ||
|
||
O.NE=( 0,+1) | ||
O.ES=(+1, 0) | ||
O.SW=( 0,-1) | ||
O.WN=(-1, 0) | ||
|
||
O.NW=(+1, 0) | ||
O.WS=( 0,+1) | ||
O.SE=(-1, 0) | ||
O.EN=( 0,-1) | ||
|
||
O.NS=(+1,+1) | ||
O.EW=(+1,-1) | ||
O.SN=(-1,-1) | ||
O.WE=(-1,+1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package concurrent; | ||
|
||
import core.action.reachable.ILockedReachable; | ||
import core.action.reachable.ReachableFacade; | ||
import core.mino.MinoFactory; | ||
import core.mino.MinoShifter; | ||
import core.srs.MinoRotation; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class ILockedReachableThreadLocal extends ThreadLocal<ILockedReachable> { | ||
private final MinoFactory minoFactory; | ||
private final MinoShifter minoShifter; | ||
private final MinoRotation minoRotation; | ||
private final int maxY; | ||
private final boolean use180Rotation; | ||
|
||
public ILockedReachableThreadLocal(MinoRotation minoRotation, int maxY, boolean use180Rotation) { | ||
this(new MinoFactory(), new MinoShifter(), minoRotation, maxY, use180Rotation); | ||
} | ||
|
||
public ILockedReachableThreadLocal(Supplier<MinoRotation> minoRotationSupplier, int maxY, boolean use180Rotation) { | ||
this(minoRotationSupplier.get(), maxY, use180Rotation); | ||
} | ||
|
||
public ILockedReachableThreadLocal(MinoFactory minoFactory, MinoShifter minoShifter, MinoRotation minoRotation, int maxY, boolean use180Rotation) { | ||
this.minoFactory = minoFactory; | ||
this.minoShifter = minoShifter; | ||
this.minoRotation = minoRotation; | ||
this.maxY = maxY; | ||
this.use180Rotation = use180Rotation; | ||
} | ||
|
||
@Override | ||
protected ILockedReachable initialValue() { | ||
return ReachableFacade.createLocked(minoFactory, minoShifter, minoRotation, maxY, use180Rotation); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
package concurrent; | ||
|
||
import core.action.candidate.LockedCandidate; | ||
import core.action.candidate.CandidateFacade; | ||
import core.action.candidate.ILockedCandidate; | ||
import core.mino.MinoFactory; | ||
import core.mino.MinoShifter; | ||
import core.srs.MinoRotation; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class LockedCandidateThreadLocal extends ThreadLocal<LockedCandidate> { | ||
public class LockedCandidateThreadLocal extends ThreadLocal<ILockedCandidate> { | ||
private final Supplier<MinoRotation> minoRotationSupplier; | ||
private final int maxY; | ||
private final boolean use180Rotation; | ||
|
||
public LockedCandidateThreadLocal(Supplier<MinoRotation> minoRotationSupplier, int maxY) { | ||
public LockedCandidateThreadLocal(Supplier<MinoRotation> minoRotationSupplier, int maxY, boolean use180Rotation) { | ||
this.minoRotationSupplier = minoRotationSupplier; | ||
this.maxY = maxY; | ||
this.use180Rotation = use180Rotation; | ||
} | ||
|
||
@Override | ||
protected LockedCandidate initialValue() { | ||
protected ILockedCandidate initialValue() { | ||
MinoFactory minoFactory = new MinoFactory(); | ||
MinoShifter minoShifter = new MinoShifter(); | ||
MinoRotation minoRotation = minoRotationSupplier.get(); | ||
return new LockedCandidate(minoFactory, minoShifter, minoRotation, maxY); | ||
return CandidateFacade.createLocked(minoFactory, minoShifter, minoRotation, maxY, use180Rotation); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
src/main/java/concurrent/SRSAnd180CandidateThreadLocal.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/main/java/concurrent/SRSAnd180ReachableThreadLocal.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.