@@ -243,13 +243,13 @@ def test_upgrade_opened_pon_to_kan(self):
243243 tile = self ._string_to_136_tile (man = '4' )
244244 player .draw_tile (tile )
245245
246- self .assertEqual (player .can_call_kan (tile , False ), None )
246+ self .assertEqual (player .should_call_kan (tile , False ), None )
247247
248248 player .add_called_meld (self ._make_meld (Meld .PON , man = '444' ))
249249
250250 self .assertEqual (len (player .melds ), 1 )
251251 self .assertEqual (len (player .tiles ), 14 )
252- self .assertEqual (player .can_call_kan (tile , False ), Meld .CHANKAN )
252+ self .assertEqual (player .should_call_kan (tile , False ), Meld .CHANKAN )
253253
254254 player .discard_tile ()
255255 player .draw_tile (tile )
@@ -269,15 +269,15 @@ def test_call_closed_kan(self):
269269 player .draw_tile (tile )
270270
271271 # it is pretty stupid to call closed kan with 2m
272- self .assertEqual (player .can_call_kan (tile , False ), None )
272+ self .assertEqual (player .should_call_kan (tile , False ), None )
273273
274274 tiles = self ._string_to_136_array (man = '12223' , sou = '111456' , pin = '12' )
275275 player .init_hand (tiles )
276276 tile = self ._string_to_136_tile (sou = '1' )
277277 player .draw_tile (tile )
278278
279279 # call closed kan with 1s is fine
280- self .assertEqual (player .can_call_kan (tile , False ), Meld .KAN )
280+ self .assertEqual (player .should_call_kan (tile , False ), Meld .KAN )
281281
282282 def test_opened_kan (self ):
283283 table = Table ()
@@ -292,14 +292,14 @@ def test_opened_kan(self):
292292
293293 # our hand is closed, we don't need to call opened kan here
294294 tile = self ._string_to_136_tile (sou = '1' )
295- self .assertEqual (player .can_call_kan (tile , True ), None )
295+ self .assertEqual (player .should_call_kan (tile , True ), None )
296296
297297 player .add_called_meld (self ._make_meld (Meld .PON , honors = '111' ))
298298
299299 # our hand is open, but it is not tempai
300300 # we don't need to open kan here
301301 tile = self ._string_to_136_tile (sou = '1' )
302- self .assertEqual (player .can_call_kan (tile , True ), None )
302+ self .assertEqual (player .should_call_kan (tile , True ), None )
303303
304304 table = Table ()
305305 player = table .player
@@ -314,7 +314,7 @@ def test_opened_kan(self):
314314
315315 # our hand is open, in tempai and with a good wait
316316 tile = self ._string_to_136_tile (sou = '1' )
317- self .assertEqual (player .can_call_kan (tile , True ), Meld .KAN )
317+ self .assertEqual (player .should_call_kan (tile , True ), Meld .KAN )
318318
319319 def test_closed_kan_and_riichi (self ):
320320 table = Table ()
@@ -330,7 +330,7 @@ def test_closed_kan_and_riichi(self):
330330 tile = kan_tiles [3 ]
331331 player .draw_tile (tile )
332332
333- kan_type = player .can_call_kan (tile , False )
333+ kan_type = player .should_call_kan (tile , False )
334334 self .assertEqual (kan_type , Meld .KAN )
335335
336336 meld = Meld ()
@@ -362,4 +362,4 @@ def test_dont_call_kan_in_defence_mode(self):
362362 table .add_called_riichi (1 )
363363
364364 tile = self ._string_to_136_tile (sou = '1' )
365- self .assertEqual (table .player .can_call_kan (tile , False ), None )
365+ self .assertEqual (table .player .should_call_kan (tile , False ), None )
0 commit comments