오픈지엘 무지개 육면체 빙글빙글
소스코드 더보기 #include #include #include GLfloat Delta = 0.0; GLfloat MyVertices[8][3] = { {-0.25,-0.25,0.25}, {-0.25,0.25,0.25}, {0.25,0.25,0.25}, {0.25,-0.25,0.25}, {-0.25,-0.25,-0.25}, {-0.25,0.25,-0.25}, {0.25,0.25,-0.25}, {0.25,-0.25,-0.25} }; GLfloat MyColors[8][3] = { {0.2,0.2,0.2},{1.0,0.0,0.0},{1.0,1.0,0.0},{0.0,1.0,0.0},{0.0,0.0,1.0},{1.0,0.0,1.0},{1.0,1.0,1.0},{0.0,1.0,1.0} }; GLubyte MyVe..
2019. 12. 19.
c언어 tic-tac-toe
▼아래는 소스코드▼더보기#include #include #include #include #define SIZE 3 int main(void) { START_0: int i, j, a, b, c; int turn; int player; int AI; int board[SIZE][SIZE] = { { 0,0,0 } ,{0,0,0}, {0,0,0} }; int RE; long time_taken; int win = 100; printf("!!!TIC TAC TOE 게임을 시작합니다!!!\n\n"); printf("□□□\n□□□\n□□□"); printf("\n\n"); printf("\n\n1 2 3\n4 5 6\n7 8 9\n\n"); mistake: printf("플레이어 먼저 하시겠습니까?(예:1, 아..
2019. 6. 23.