Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
using System; namespace GameApp { class Program { static void Main() { Player player = new Player(10, 5, '@'); Renderer renderer = new Renderer(); renderer.Draw(player); Console.ReadKey(); } } public class Player { public int PosicionX { get; set; } public int PosicionY { get; set; } public char Symbol { get; set; } public Player(int PosicionX, int PosicionY, char symbol) { PosicionX = PosicionX; PosicionY = PosicionY; Symbol = symbol; } } public class Renderer { public void Draw(Player player) { Console.Clear(); Console.SetCursorPosition(player.PosicionX, player.PosicionY); Console.Write(player.Symbol); } } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)