1
0
Fork 0

Fix for storing winning word

This commit is contained in:
Andrew Tomaka 2022-01-27 19:37:16 -05:00
parent 9755aed007
commit 9595e62282
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -42,7 +42,7 @@ class Game
if board.winner? if board.winner?
@outcomes << Outcome.new( @outcomes << Outcome.new(
state: :win, state: :win,
correct: board.correct_answer, correct: board.guesses.last,
guesses: board.guesses, guesses: board.guesses,
) )
board.reset! board.reset!