版本比较
五子棋
正文
增加 3 行删除 8 行
159 行未改动全部展开16016116216316416516616716816917017117217317487 行未改动2622632642652642652662672682692662702712672682692702 行未改动159 行未改动全部展开 x = x + Dx[u], y = y + Dy[u]; } if (can) { x = i, y = j, can = 1; color(14); for (int k = 0; k < 5; k++) { gotoxy(x, y); __builtin_printf("×"); x = x + Dx[u], y = y + Dy[u]; } color(7); return true; } } }87 行未改动 P("1.Play with the computer"); P("2.Game Rules"); cin >> C; HIDE(); if (C == 1) { system("cls"); P("1.Easy"); P("2.Hard"); cin >> C; if (C == 1) PLAY_AI(0.8); if (C == 1) PLAY_AI(0.8); else PLAY_AI(1.5); } else if (C == 2) RULE(); } return 0;2 行未改动