mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
39 lines
926 B
C#
39 lines
926 B
C#
using System;
|
|
|
|
namespace Plot
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
PrintTitle();
|
|
|
|
foreach (var row in Function.GetRows())
|
|
{
|
|
foreach (var z in row)
|
|
{
|
|
Plot(z);
|
|
}
|
|
Console.WriteLine();
|
|
}
|
|
}
|
|
|
|
private static void PrintTitle()
|
|
{
|
|
Console.WriteLine(" 3D Plot");
|
|
Console.WriteLine(" Creative Computing Morristown, New Jersey");
|
|
Console.WriteLine();
|
|
Console.WriteLine();
|
|
Console.WriteLine();
|
|
Console.WriteLine();
|
|
}
|
|
|
|
private static void Plot(int z)
|
|
{
|
|
var x = Console.GetCursorPosition().Top;
|
|
Console.SetCursorPosition(z, x);
|
|
Console.Write("*");
|
|
}
|
|
}
|
|
}
|