Advertisement
Ch4osCosmo

AMS CODE

Aug 6th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.05 KB | None | 0 0
  1. +--------------+
  2. | Make output: |
  3. +--------------+
  4. gcc -std=gnu99 -D_XOPEN_SOURCE=500 -Wall -Werror *.c -o running_zombie -I../ZDK02 -L../ZDK02 -I../TestLib02 -L../TestLib02 -ltestlib02 -lzdk02 -lncurses -lm -lrt
  5.  
  6. +--------------+
  7. | Test output: |
  8. +--------------+
  9. Total score available for this exercise: 100
  10.  
  11. Testing standard window: display initial frame, then quit...
  12. Input sequence: 'q'
  13. Test passed.
  14. Score for this part: 5/5
  15.  
  16. Testing standard window: zombie takes one step in each of the original directions...
  17. Input sequence: '6842q'
  18. Test passed.
  19. Score for this part: 5/5
  20.  
  21. Testing standard window: zombie takes 10 steps in each of the original directions...
  22. Input sequence: '6666666666888888888844444444442222222222q'
  23. Test passed.
  24. Score for this part: 5/5
  25.  
  26. Testing standard window: user enters spaces, but the score still updates properly...
  27. Input sequence: ' q'
  28. Screen does not match expected value at frame number 1.
  29. Expected frame: (((Frame
  30. width=80
  31. height=24
  32. 30,0,83
  33. 31,0,99
  34. 32,0,111
  35. 33,0,114
  36. 34,0,101
  37. 35,0,58
  38. 37,0,48
  39. 64,9,90
  40. 0,23,77
  41. 1,23,101
  42. 2,23,110
  43. 3,23,117
  44. 4,23,58
  45. 6,23,56
  46. 8,23,61
  47. 10,23,78
  48. 11,23,59
  49. 13,23,50
  50. 15,23,61
  51. 17,23,83
  52. 18,23,59
  53. 20,23,54
  54. 22,23,61
  55. 24,23,69
  56. 25,23,59
  57. 27,23,52
  58. 29,23,61
  59. 31,23,87
  60. 32,23,59
  61. 34,23,57
  62. 36,23,61
  63. 38,23,78
  64. 39,23,69
  65. 40,23,59
  66. 42,23,51
  67. 44,23,61
  68. 46,23,83
  69. 47,23,69
  70. 48,23,59
  71. 50,23,55
  72. 52,23,61
  73. 54,23,78
  74. 55,23,87
  75. 56,23,59
  76. 58,23,49
  77. 60,23,61
  78. 62,23,83
  79. 63,23,87
  80. 64,23,59
  81. 66,23,113
  82. 68,23,61
  83. 70,23,81
  84. 71,23,117
  85. 72,23,105
  86. 73,23,116
  87. 74,23,46
  88. EndFrame
  89. )))
  90. Actual frame: (((Frame
  91. width=80
  92. height=24
  93. 30,0,83
  94. 31,0,99
  95. 32,0,111
  96. 33,0,114
  97. 34,0,101
  98. 35,0,58
  99. 37,0,49
  100. 64,9,90
  101. 0,23,77
  102. 1,23,101
  103. 2,23,110
  104. 3,23,117
  105. 4,23,58
  106. 6,23,56
  107. 8,23,61
  108. 10,23,78
  109. 11,23,59
  110. 13,23,50
  111. 15,23,61
  112. 17,23,83
  113. 18,23,59
  114. 20,23,54
  115. 22,23,61
  116. 24,23,69
  117. 25,23,59
  118. 27,23,52
  119. 29,23,61
  120. 31,23,87
  121. 32,23,59
  122. 34,23,57
  123. 36,23,61
  124. 38,23,78
  125. 39,23,69
  126. 40,23,59
  127. 42,23,51
  128. 44,23,61
  129. 46,23,83
  130. 47,23,69
  131. 48,23,59
  132. 50,23,55
  133. 52,23,61
  134. 54,23,78
  135. 55,23,87
  136. 56,23,59
  137. 58,23,49
  138. 60,23,61
  139. 62,23,83
  140. 63,23,87
  141. 64,23,59
  142. 66,23,113
  143. 68,23,61
  144. 70,23,81
  145. 71,23,117
  146. 72,23,105
  147. 73,23,116
  148. 74,23,46
  149. EndFrame
  150. )))
  151. Test failed.
  152. Score for this part: 0/5
  153.  
  154. Testing standard window: zombie takes one step in each of the diagonal directions...
  155. Input sequence: '9713q'
  156. Test passed.
  157. Score for this part: 10/10
  158.  
  159. Testing standard window: zombie takes 10 steps in each of the diagonal directions...
  160. Input sequence: '9999999999777777777711111111113333333333q'
  161. Test passed.
  162. Score for this part: 10/10
  163.  
  164. Testing standard window: zombie takes many steps in randomly chosen directions...
  165. Seeding random number generator with 2107058.
  166. Input sequence: '2968443296931795238722993892169829998781179125891313536273164751778485942439712688448592226615236887q'
  167. Screen does not match expected value at frame number 16.
  168. Expected frame: (((Frame
  169. width=80
  170. height=24
  171. 30,0,83
  172. 31,0,99
  173. 32,0,111
  174. 33,0,114
  175. 34,0,101
  176. 35,0,58
  177. 37,0,50
  178. 68,8,90
  179. 0,23,77
  180. 1,23,101
  181. 2,23,110
  182. 3,23,117
  183. 4,23,58
  184. 6,23,56
  185. 8,23,61
  186. 10,23,78
  187. 11,23,59
  188. 13,23,50
  189. 15,23,61
  190. 17,23,83
  191. 18,23,59
  192. 20,23,54
  193. 22,23,61
  194. 24,23,69
  195. 25,23,59
  196. 27,23,52
  197. 29,23,61
  198. 31,23,87
  199. 32,23,59
  200. 34,23,57
  201. 36,23,61
  202. 38,23,78
  203. 39,23,69
  204. 40,23,59
  205. 42,23,51
  206. 44,23,61
  207. 46,23,83
  208. 47,23,69
  209. 48,23,59
  210. 50,23,55
  211. 52,23,61
  212. 54,23,78
  213. 55,23,87
  214. 56,23,59
  215. 58,23,49
  216. 60,23,61
  217. 62,23,83
  218. 63,23,87
  219. 64,23,59
  220. 66,23,113
  221. 68,23,61
  222. 70,23,81
  223. 71,23,117
  224. 72,23,105
  225. 73,23,116
  226. 74,23,46
  227. EndFrame
  228. )))
  229. Actual frame: (((Frame
  230. width=80
  231. height=24
  232. 30,0,83
  233. 31,0,99
  234. 32,0,111
  235. 33,0,114
  236. 34,0,101
  237. 35,0,58
  238. 37,0,49
  239. 68,8,90
  240. 0,23,77
  241. 1,23,101
  242. 2,23,110
  243. 3,23,117
  244. 4,23,58
  245. 6,23,56
  246. 8,23,61
  247. 10,23,78
  248. 11,23,59
  249. 13,23,50
  250. 15,23,61
  251. 17,23,83
  252. 18,23,59
  253. 20,23,54
  254. 22,23,61
  255. 24,23,69
  256. 25,23,59
  257. 27,23,52
  258. 29,23,61
  259. 31,23,87
  260. 32,23,59
  261. 34,23,57
  262. 36,23,61
  263. 38,23,78
  264. 39,23,69
  265. 40,23,59
  266. 42,23,51
  267. 44,23,61
  268. 46,23,83
  269. 47,23,69
  270. 48,23,59
  271. 50,23,55
  272. 52,23,61
  273. 54,23,78
  274. 55,23,87
  275. 56,23,59
  276. 58,23,49
  277. 60,23,61
  278. 62,23,83
  279. 63,23,87
  280. 64,23,59
  281. 66,23,113
  282. 68,23,61
  283. 70,23,81
  284. 71,23,117
  285. 72,23,105
  286. 73,23,116
  287. 74,23,46
  288. EndFrame
  289. )))
  290. Test failed.
  291. Score for this part: 0/10
  292.  
  293. Testing resized window: display initial frame, then quit...
  294. Input sequence: 'q'
  295. Test passed.
  296. Score for this part: 5/5
  297.  
  298. Testing resized window: zombie takes one step in each of the original directions...
  299. Input sequence: '6842q'
  300. Test passed.
  301. Score for this part: 5/5
  302.  
  303. Testing resized window: zombie takes 10 steps in each of the original directions...
  304. Input sequence: '6666666666888888888844444444442222222222q'
  305. Test passed.
  306. Score for this part: 5/5
  307.  
  308. Testing resized window: user enters spaces, but the score still updates properly...
  309. Input sequence: ' q'
  310. Screen does not match expected value at frame number 1.
  311. Expected frame: (((Frame
  312. width=148
  313. height=40
  314. 30,0,83
  315. 31,0,99
  316. 32,0,111
  317. 33,0,114
  318. 34,0,101
  319. 35,0,58
  320. 37,0,48
  321. 118,16,90
  322. 0,39,77
  323. 1,39,101
  324. 2,39,110
  325. 3,39,117
  326. 4,39,58
  327. 6,39,56
  328. 8,39,61
  329. 10,39,78
  330. 11,39,59
  331. 13,39,50
  332. 15,39,61
  333. 17,39,83
  334. 18,39,59
  335. 20,39,54
  336. 22,39,61
  337. 24,39,69
  338. 25,39,59
  339. 27,39,52
  340. 29,39,61
  341. 31,39,87
  342. 32,39,59
  343. 34,39,57
  344. 36,39,61
  345. 38,39,78
  346. 39,39,69
  347. 40,39,59
  348. 42,39,51
  349. 44,39,61
  350. 46,39,83
  351. 47,39,69
  352. 48,39,59
  353. 50,39,55
  354. 52,39,61
  355. 54,39,78
  356. 55,39,87
  357. 56,39,59
  358. 58,39,49
  359. 60,39,61
  360. 62,39,83
  361. 63,39,87
  362. 64,39,59
  363. 66,39,113
  364. 68,39,61
  365. 70,39,81
  366. 71,39,117
  367. 72,39,105
  368. 73,39,116
  369. 74,39,46
  370. EndFrame
  371. )))
  372. Actual frame: (((Frame
  373. width=148
  374. height=40
  375. 30,0,83
  376. 31,0,99
  377. 32,0,111
  378. 33,0,114
  379. 34,0,101
  380. 35,0,58
  381. 37,0,49
  382. 118,16,90
  383. 0,39,77
  384. 1,39,101
  385. 2,39,110
  386. 3,39,117
  387. 4,39,58
  388. 6,39,56
  389. 8,39,61
  390. 10,39,78
  391. 11,39,59
  392. 13,39,50
  393. 15,39,61
  394. 17,39,83
  395. 18,39,59
  396. 20,39,54
  397. 22,39,61
  398. 24,39,69
  399. 25,39,59
  400. 27,39,52
  401. 29,39,61
  402. 31,39,87
  403. 32,39,59
  404. 34,39,57
  405. 36,39,61
  406. 38,39,78
  407. 39,39,69
  408. 40,39,59
  409. 42,39,51
  410. 44,39,61
  411. 46,39,83
  412. 47,39,69
  413. 48,39,59
  414. 50,39,55
  415. 52,39,61
  416. 54,39,78
  417. 55,39,87
  418. 56,39,59
  419. 58,39,49
  420. 60,39,61
  421. 62,39,83
  422. 63,39,87
  423. 64,39,59
  424. 66,39,113
  425. 68,39,61
  426. 70,39,81
  427. 71,39,117
  428. 72,39,105
  429. 73,39,116
  430. 74,39,46
  431. EndFrame
  432. )))
  433. Test failed.
  434. Score for this part: 0/5
  435.  
  436. Testing resized window: zombie takes one step in each of the diagonal directions...
  437. Input sequence: '9713q'
  438. Test passed.
  439. Score for this part: 10/10
  440.  
  441. Testing resized window: zombie takes 10 steps in each of the diagonal directions...
  442. Input sequence: '9999999999777777777711111111113333333333q'
  443. Test passed.
  444. Score for this part: 10/10
  445.  
  446. Testing resized window: zombie takes many steps in randomly chosen directions...
  447. Seeding random number generator with 2107058.
  448. Input sequence: '2968443296931795238722993892169829998781179125891313536273164751778485942439712688448592226615236887q'
  449. Screen does not match expected value at frame number 16.
  450. Expected frame: (((Frame
  451. width=148
  452. height=40
  453. 30,0,83
  454. 31,0,99
  455. 32,0,111
  456. 33,0,114
  457. 34,0,101
  458. 35,0,58
  459. 37,0,50
  460. 122,15,90
  461. 0,39,77
  462. 1,39,101
  463. 2,39,110
  464. 3,39,117
  465. 4,39,58
  466. 6,39,56
  467. 8,39,61
  468. 10,39,78
  469. 11,39,59
  470. 13,39,50
  471. 15,39,61
  472. 17,39,83
  473. 18,39,59
  474. 20,39,54
  475. 22,39,61
  476. 24,39,69
  477. 25,39,59
  478. 27,39,52
  479. 29,39,61
  480. 31,39,87
  481. 32,39,59
  482. 34,39,57
  483. 36,39,61
  484. 38,39,78
  485. 39,39,69
  486. 40,39,59
  487. 42,39,51
  488. 44,39,61
  489. 46,39,83
  490. 47,39,69
  491. 48,39,59
  492. 50,39,55
  493. 52,39,61
  494. 54,39,78
  495. 55,39,87
  496. 56,39,59
  497. 58,39,49
  498. 60,39,61
  499. 62,39,83
  500. 63,39,87
  501. 64,39,59
  502. 66,39,113
  503. 68,39,61
  504. 70,39,81
  505. 71,39,117
  506. 72,39,105
  507. 73,39,116
  508. 74,39,46
  509. EndFrame
  510. )))
  511. Actual frame: (((Frame
  512. width=148
  513. height=40
  514. 30,0,83
  515. 31,0,99
  516. 32,0,111
  517. 33,0,114
  518. 34,0,101
  519. 35,0,58
  520. 37,0,49
  521. 122,15,90
  522. 0,39,77
  523. 1,39,101
  524. 2,39,110
  525. 3,39,117
  526. 4,39,58
  527. 6,39,56
  528. 8,39,61
  529. 10,39,78
  530. 11,39,59
  531. 13,39,50
  532. 15,39,61
  533. 17,39,83
  534. 18,39,59
  535. 20,39,54
  536. 22,39,61
  537. 24,39,69
  538. 25,39,59
  539. 27,39,52
  540. 29,39,61
  541. 31,39,87
  542. 32,39,59
  543. 34,39,57
  544. 36,39,61
  545. 38,39,78
  546. 39,39,69
  547. 40,39,59
  548. 42,39,51
  549. 44,39,61
  550. 46,39,83
  551. 47,39,69
  552. 48,39,59
  553. 50,39,55
  554. 52,39,61
  555. 54,39,78
  556. 55,39,87
  557. 56,39,59
  558. 58,39,49
  559. 60,39,61
  560. 62,39,83
  561. 63,39,87
  562. 64,39,59
  563. 66,39,113
  564. 68,39,61
  565. 70,39,81
  566. 71,39,117
  567. 72,39,105
  568. 73,39,116
  569. 74,39,46
  570. EndFrame
  571. )))
  572. Test failed.
  573. Score for this part: 0/10
  574.  
  575.  
  576. Your overall score for this exercise: 70/100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement