Snake.cpp 453 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include <iostream>
  2. #include <windows.h>
  3. #include "Const.h"
  4. #include "Control.h"
  5. int main()
  6. {
  7. snake_size = 7;// >0 Âêëþ÷àåò ãîëîâó + ðàçìåð õâîñòà (åñëè 1 - òî òîëüêî ãîëîâà)
  8. timeout = 200; //> 100 (ms), 1000 - áóäåò çàäåðæèâàòü âûïîëíåíèå ïðîãðàììû íà 1 ñåêóíäó
  9. char field[columns]{};
  10. for (int i = 0; i < (columns); i++)
  11. {
  12. field[i] = '*';
  13. }
  14. field[columns] = '\0';
  15. //std::cout << field << std::endl;
  16. stop
  17. return 0;
  18. }