I am looking to update a construct on screen as the input changes. The construct will look like so:
puts " | | "
puts " | | "
puts "----+----+----"
puts "make an input (1/2/3/4/5/6)"
selection = gets.chomp
#process selection, returns value, value to be updated in construct.
I defined the spaces for the values as a 2x3 array. The value returned, for example, can be '2'
to be stored in space [0][1]
(row 1, col 2). The output should then look like:
| 2 |
| |
----+----+----
This needs to happen without re-printing the construct. When the user is prompted (in a loop) to make another selection, again the construct should be updated without re-printing.