Yep
This commit is contained in:
@@ -5,17 +5,17 @@ namespace Shogi.Domain.ValueObjects;
|
||||
|
||||
internal record class GoldGeneral : Piece
|
||||
{
|
||||
private static readonly ReadOnlyCollection<Path> Player1Paths = new(new List<Path>(6)
|
||||
{
|
||||
new Path(Direction.Forward),
|
||||
new Path(Direction.ForwardLeft),
|
||||
new Path(Direction.ForwardRight),
|
||||
new Path(Direction.Left),
|
||||
new Path(Direction.Right),
|
||||
new Path(Direction.Backward)
|
||||
});
|
||||
public static readonly ReadOnlyCollection<Path> Player1Paths = new(
|
||||
[
|
||||
new Path(Direction.Forward),
|
||||
new Path(Direction.ForwardLeft),
|
||||
new Path(Direction.ForwardRight),
|
||||
new Path(Direction.Left),
|
||||
new Path(Direction.Right),
|
||||
new Path(Direction.Backward)
|
||||
]);
|
||||
|
||||
private static readonly ReadOnlyCollection<Path> Player2Paths =
|
||||
public static readonly ReadOnlyCollection<Path> Player2Paths =
|
||||
Player1Paths
|
||||
.Select(p => p.Invert())
|
||||
.ToList()
|
||||
|
||||
Reference in New Issue
Block a user