/*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();
}

 

+ Recent posts