Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Output.WriteConsoleString(Settings.NextLine);
  2. for (int cellHeight = 0; cellHeight < _fieldHeight; cellHeight++)
  3. {
  4. for (int cellWidth = 0; cellWidth < _fieldWidth; cellWidth++)
  5. {
  6. if (_savanna._huntingField[cellHeight,cellWidth] is Lion )
  7. {
  8. Output.WriteConsoleString("L");
  9. }
  10. else if(_savanna._huntingField[cellHeight, cellWidth] is Antelope)
  11. {
  12. Output.WriteConsoleString("A");
  13. }
  14. else
  15. {
  16. Output.WriteConsoleString(" ");
  17. }
  18. if (cellWidth == _fieldWidth - 1) Output.WriteConsoleString(Settings.NextLine);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement