@@ -54,7 +54,7 @@ impl From<InitState> for State {
5454}
5555
5656impl State {
57- pub ( super ) fn discard ( & mut self , tile : Tile ) {
57+ pub ( super ) const fn discard ( & mut self , tile : Tile ) {
5858 self . tehai [ tile. deaka ( ) . as_usize ( ) ] -= 1 ;
5959 match tile. as_u8 ( ) {
6060 tu8 ! ( 5 mr) => self . akas_in_hand [ 0 ] = false ,
@@ -64,7 +64,7 @@ impl State {
6464 }
6565 }
6666
67- pub ( super ) fn undo_discard ( & mut self , tile : Tile ) {
67+ pub ( super ) const fn undo_discard ( & mut self , tile : Tile ) {
6868 self . tehai [ tile. deaka ( ) . as_usize ( ) ] += 1 ;
6969 match tile. as_u8 ( ) {
7070 tu8 ! ( 5 mr) => self . akas_in_hand [ 0 ] = true ,
@@ -74,7 +74,7 @@ impl State {
7474 }
7575 }
7676
77- pub ( super ) fn deal ( & mut self , tile : Tile ) {
77+ pub ( super ) const fn deal ( & mut self , tile : Tile ) {
7878 self . tiles_in_wall [ tile. deaka ( ) . as_usize ( ) ] -= 1 ;
7979 match tile. as_u8 ( ) {
8080 tu8 ! ( 5 mr) => self . akas_in_wall [ 0 ] = false ,
@@ -85,7 +85,7 @@ impl State {
8585 self . undo_discard ( tile) ;
8686 }
8787
88- pub ( super ) fn undo_deal ( & mut self , tile : Tile ) {
88+ pub ( super ) const fn undo_deal ( & mut self , tile : Tile ) {
8989 self . discard ( tile) ;
9090 self . tiles_in_wall [ tile. deaka ( ) . as_usize ( ) ] += 1 ;
9191 match tile. as_u8 ( ) {
0 commit comments