Zagramy?

  • 18
  • Niedostępne
Jest to gra dla trzech osób. Każdy gracz (Gamer) posiada dwa parametry: nazwisko (name) oraz liczba działań na sekundę (rating). Wyświetl przeprowadzone działania oraz określ zwycięzcę i przegranych. Zaczynajmy. 1. Dowiedz się, co robi program. 1.1. List<String> actions przechowuje sekwencję d
Nie możesz wykonać tego zadania, ponieważ nie jesteś zalogowany.
Komentarze (2)
  • Popularne
  • Najnowsze
  • Najstarsze
Musisz się zalogować, aby dodać komentarz
Łukasz Czar
Poziom 20 , Poland, Poland
19 czerwca 2022, 14:47
Could someone please explain to me how method
Thread.sleep(1000) and Thread.sleep(1000/rating)
completely changes the displayed result on the screen? This was the only reason why I could not pass the assignment. However, I still don't understand why this is happening? edit: Does this have to do with the Thread.sleep() method running and checking the "isInterrupted" value? That would make sense, although I'm still having trouble getting it into my head.
Paweł
Poziom 20 , Warszawa, Poland
24 marca 2020, 18:59
What is wrong with my solution?