Hi, I ran across the following syntax while checking my Tic Tac Toe project against the solution.
is_computer ? ComputerPlayer.new(mark) : HumanPlayer.new(mark)
I’d like to read up more on this notation which seems to be a cleaner alternative to using an if statement.
Anyone have any idea what this notation is called?