You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zauważyłem, że funkcja checkWin jest prawie taka sama dla każdego gracza, a jedyne czym się różni to wartość do której porównywana jest zawartość pola.
Zauważyłem, że funkcja
checkWin
jest prawie taka sama dla każdego gracza, a jedyne czym się różni to wartość do której porównywana jest zawartość pola.PlayerGreen
PlayerBlue
Jak widać funkcje są prawie takie same, moim zdaniem należałoby je przenieść gdzieś do klasy
Game
.The text was updated successfully, but these errors were encountered: