@@ -23,21 +23,25 @@ class Board {
2323 List <int > get squaresOfPlayer => _squares (player);
2424
2525 /// square String list of player's bitboard.
26- List <String > get squareStringsOfPlayer => _squares (player).map (move2String).toList ();
26+ List <String > get squareStringsOfPlayer =>
27+ _squares (player).map (move2String).toList ();
2728
2829 /// square list of opponent's bitboard.
2930 List <int > get squaresOfOpponent => _squares (opponent);
3031
3132 /// square String list of opponent's bitboard.
32- List <String > get squareStringsOfOpponent => _squares (opponent).map (move2String).toList ();
33+ List <String > get squareStringsOfOpponent =>
34+ _squares (opponent).map (move2String).toList ();
3335
3436 List <int > _squares (final int bitboard) {
3537 final result = < int > [];
3638 final target = BigInt .from (bitboard).toUnsigned (64 );
3739 var mask = BigInt .from (0x8000000000000000 ).toUnsigned (64 );
3840 var i = 0 ;
3941 while (i <= 63 ) {
40- if ((mask & target) == mask) result.add (63 - i); // NOTE: head of edax bitboard is "h8".
42+ if ((mask & target) == mask) {
43+ result.add (63 - i);
44+ } // NOTE: head of edax bitboard is "h8".
4145 mask = mask >> 1 ;
4246 i++ ;
4347 }
@@ -58,8 +62,10 @@ class Board {
5862 ///
5963 /// e.g. `-------------------*-------**O----**O*-----O--------------------W` .
6064 String stringApplicableToSetboard (final int currentColor) {
61- final pStone = currentColor == TurnColor .black ? ColorChar .black : ColorChar .white;
62- final oStone = currentColor == TurnColor .black ? ColorChar .white : ColorChar .black;
65+ final pStone =
66+ currentColor == TurnColor .black ? ColorChar .black : ColorChar .white;
67+ final oStone =
68+ currentColor == TurnColor .black ? ColorChar .white : ColorChar .black;
6369
6470 final buffer = StringBuffer ();
6571 for (var k = 0 ; k < 8 ; k++ ) {
@@ -93,8 +99,10 @@ class Board {
9399 /// 8 - - - - - - - - 8 <br>
94100 /// A B C D E F G H
95101 String prettyString (final int currentColor) {
96- final pStone = currentColor == TurnColor .black ? ColorChar .black : ColorChar .white;
97- final oStone = currentColor == TurnColor .black ? ColorChar .white : ColorChar .black;
102+ final pStone =
103+ currentColor == TurnColor .black ? ColorChar .black : ColorChar .white;
104+ final oStone =
105+ currentColor == TurnColor .black ? ColorChar .white : ColorChar .black;
98106
99107 final buffer = StringBuffer ()..writeln (' A B C D E F G H' );
100108 for (var k = 0 ; k < 8 ; k++ ) {
0 commit comments