added winning determination algorithm (not entirely working yet)
This commit is contained in:
@@ -67,3 +67,15 @@ func _on_web_client_tcp_received_bet_request(disallowed_bet: int) -> void:
|
||||
|
||||
func _on_web_client_tcp_request_next_round() -> void:
|
||||
_start_next_round()
|
||||
|
||||
func _on_player_hand_0_card_played(card_id: int) -> void:
|
||||
web_client.play_card(card_id)
|
||||
$Label.hide()
|
||||
|
||||
func _on_web_client_tcp_notify_play_card_request() -> void:
|
||||
$Label.show()
|
||||
|
||||
func _on_web_client_tcp_received_win() -> void:
|
||||
$WinLabel.show()
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
$WinLabel.hide()
|
||||
|
||||
Reference in New Issue
Block a user