olistic / warriorjs

🏰 An exciting game of programming and Artificial Intelligence
https://warriorjs.com
MIT License
9.43k stars 490 forks source link

Feature request: clearer display #153

Closed Offirmo closed 6 years ago

Offirmo commented 6 years ago

Playing the game, I found out that the stats and map displayed in previous terminal lines are updated after the turn.

This makes the output hard to read, because we can't assume that terminal lines content is ordered like a timeline. This is no longer a "history".

See an example:

screen shot 2018-05-22 at 18 12 52
  1. status displays health = 20
  2. my character "my health is 20/20"
  3. a sludge attack me
  4. I have now 17 HP AND the health display above is updated to 17
  5. On the next status display, we see "14", would have expected 17

The same for the map.

I would suggest NOT updating past terminal lines, thus having a clear, time-ordered line-by-line history.

pigalot commented 6 years ago

The display is a summary of the turn:

As a note the turns are all taken at once and then the output is done from the results after the fact.

olistic commented 6 years ago

@Offirmo The current behavior strikes a balance between too much information (the floor map being printer on every action), and lack of information (a single floor map for the entire play log). I tested those other alternatives and they weren't convincing. What I would be interested in doing, however, is what's presented in #155.