Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Output.WriteConsoleString(Settings.NextLine);
- for (int cellHeight = 0; cellHeight < _fieldHeight; cellHeight++)
- {
- for (int cellWidth = 0; cellWidth < _fieldWidth; cellWidth++)
- {
- if (_savanna._huntingField[cellHeight,cellWidth] is Lion )
- {
- Output.WriteConsoleString("L");
- }
- else if(_savanna._huntingField[cellHeight, cellWidth] is Antelope)
- {
- Output.WriteConsoleString("A");
- }
- else
- {
- Output.WriteConsoleString(" ");
- }
- if (cellWidth == _fieldWidth - 1) Output.WriteConsoleString(Settings.NextLine);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement