/*TrisPackage.Tris/running();*/
public void running()
{
int rc;
init();
while(true)
{
keyinfo = Console.ReadKey(true);
if(keyinfo.Key==ConsoleKey.RightArrow) rc=common_check(D_RIGHT);
if(keyinfo.Key==ConsoleKey.LeftArrow) rc=common_check(D_LEFT);
if(keyinfo.Key==ConsoleKey.Enter) rc=direct_check();
if(keyinfo.Key==ConsoleKey.Escape) break;
draw();
}
stop();
}
'c# 언어' 카테고리의 다른 글
TrisPackage.Tris/exchange_check(); (0) | 2021.12.09 |
---|---|
TrisPackage.Tris/draw();____draw(); (0) | 2021.11.19 |
TrisPackage.Tris/check_horizon(); (0) | 2021.11.19 |
TrisPackage.Tris/delete_column(); (0) | 2021.11.19 |
TrisPackage.Tris/definition/variables/controls (0) | 2021.11.17 |