Advertisement
Patrik_Arlos

Untitled

Mar 25th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. pal@pal-ROG-Strix-GA35DX-G35DX:~/dv1619/lab4-spel/olofssondaniel/np_assignment4$ ./sspd 127.0.0.1:6000
  2. recived msg: MENU 1
  3. recived msg: MENU 2
  4. Watch
  5. Tempcounter = 0
  6. recived msg: MENU 1
  7. Game Ready to start
  8. recived msg: STOPC
  9. recived msg: MENU 2
  10. Watch
  11. Tempcounter = 0
  12. recived msg: READY
  13. Ready recived
  14. recived msg: READY
  15. Ready recived
  16. Båda klienter redo!
  17. seconds to count = 3
  18. sendbytes1: 7
  19. sendbytes2: 7
  20. efter båda skickas
  21. seconds to count = 2
  22. sendbytes1: 7
  23. sendbytes2: 7
  24. efter båda skickas
  25. recived msg: STOPC
  26. recived msg: MENU 2
  27. Watch
  28. Tempcounter = 1
  29. seconds to count = 1
  30. sendbytes1: 7
  31. sendbytes2: 7
  32. efter båda skickas
  33. recived msg: WATCH 1
  34. seconds to count = 0
  35. efter båda skickas
  36. sendbytes1: 8
  37. recived msg: ROUND 1 0
  38. for loop test
  39. socket1 answer saved
  40. Time taken 0
  41. recived msg: ROUND 2 0
  42. for loop test
  43. socket2 answer saved
  44. Time taken 0
  45. Both answerd
  46. sock 2 won
  47. sendbytes1: 11
  48. HERE
  49. seconds to count = 3
  50. sendbytes1: 7
  51. sendbytes2: 7
  52. efter båda skickas
  53. sendbytes1: 7
  54. seconds to count = 2
  55. sendbytes1: 7
  56. sendbytes2: 7
  57. efter båda skickas
  58. sendbytes1: 7
  59. seconds to count = 1
  60. sendbytes1: 7
  61. sendbytes2: 7
  62. efter båda skickas
  63. sendbytes1: 7
  64. seconds to count = 0
  65. efter båda skickas
  66. sendbytes1: 8
  67. recived msg: ROUND 1 0
  68. for loop test
  69. socket1 answer saved
  70. Time taken 0
  71. recived msg: ROUND 1 0
  72. for loop test
  73. socket2 answer saved
  74. Time taken 0
  75. Both answerd
  76. sendbytes1: 11
  77. HERE
  78. seconds to count = 3
  79. sendbytes1: 7
  80. sendbytes2: 7
  81. efter båda skickas
  82. sendbytes1: 7
  83. seconds to count = 2
  84. sendbytes1: 7
  85. sendbytes2: 7
  86. efter båda skickas
  87. sendbytes1: 7
  88. seconds to count = 1
  89. sendbytes1: 7
  90. sendbytes2: 7
  91. efter båda skickas
  92. sendbytes1: 7
  93. seconds to count = 0
  94. efter båda skickas
  95. sendbytes1: 8
  96. recived msg: ROUND 1 0
  97. for loop test
  98. socket1 answer saved
  99. Time taken 0
  100. recived msg: ROUND 1 0
  101. for loop test
  102. socket2 answer saved
  103. Time taken 0
  104. Both answerd
  105. sendbytes1: 11
  106. HERE
  107. seconds to count = 3
  108. sendbytes1: 7
  109. sendbytes2: 7
  110. efter båda skickas
  111. sendbytes1: 7
  112. seconds to count = 2
  113. sendbytes1: 7
  114. sendbytes2: 7
  115. efter båda skickas
  116. sendbytes1: 7
  117. seconds to count = 1
  118. sendbytes1: 7
  119. sendbytes2: 7
  120. efter båda skickas
  121. sendbytes1: 7
  122. seconds to count = 0
  123. efter båda skickas
  124. sendbytes1: 8
  125. recived msg: ROUND 1 0
  126. for loop test
  127. socket1 answer saved
  128. Time taken 0
  129. recived msg: ROUND 2 0
  130. for loop test
  131. socket2 answer saved
  132. Time taken 0
  133. Both answerd
  134. sock 2 won
  135. sendbytes1: 11
  136. HERE
  137. seconds to count = 3
  138. sendbytes1: 7
  139. sendbytes2: 7
  140. efter båda skickas
  141. sendbytes1: 7
  142. seconds to count = 2
  143. sendbytes1: 7
  144. sendbytes2: 7
  145. efter båda skickas
  146. sendbytes1: 7
  147. seconds to count = 1
  148. sendbytes1: 7
  149. sendbytes2: 7
  150. efter båda skickas
  151. sendbytes1: 7
  152. seconds to count = 0
  153. efter båda skickas
  154. sendbytes1: 8
  155. recived msg: ROUND 2 0
  156. for loop test
  157. socket2 answer saved
  158. Time taken 0
  159. recived msg: ROUND 1 0
  160. for loop test
  161. socket1 answer saved
  162. Time taken 0
  163. Both answerd
  164. sendbytes1: 13
  165. HERE
  166. seconds to count = -1
  167. recived msg: MENU 3
  168. HIGSCORE LIST:Score: 3 - 1
  169. Score: 3 - 2
  170.  
  171. send MSG = Highscore
  172. Score: 3 - 1
  173. Score: 3 - 2
  174. size37
  175. recived msg: MENU 1
  176. recived msg: MENU 1
  177. Game Ready to start
  178. recived msg: READY
  179. Ready recived
  180. recived msg: READY
  181. Ready recived
  182. Båda klienter redo!
  183. seconds to count = 3
  184. sendbytes1: 7
  185. sendbytes2: 7
  186. efter båda skickas
  187. seconds to count = 2
  188. sendbytes1: 7
  189. sendbytes2: 7
  190. efter båda skickas
  191. seconds to count = 1
  192. sendbytes1: 7
  193. sendbytes2: 7
  194. efter båda skickas
  195. seconds to count = 0
  196. efter båda skickas
  197. recived msg: ROUND 2 0
  198. for loop test
  199. Both answerd
  200. sock 2 won
  201. Error sending hello msg
  202.  
  203. client1:
  204. command: START
  205. Game is ready, press enter to accept
  206.  
  207.  
  208. Sent ready msg
  209. command: TIME
  210. Game is starting in 3 seconds
  211. command: TIME
  212. Game is starting in 2 seconds
  213. command: TIME
  214. Game is starting in 1 seconds
  215. command: ROUND
  216. Timer started
  217. Round 1
  218. Select your option:
  219. 1.Rock
  220. 2.Paper
  221. 3.Scissor
  222. pal@pal-ROG-Strix-GA35DX-G35DX:~/dv1619/lab4-spel/olofssondaniel/np_assignment4$
  223.  
  224.  
  225. client2:
  226. command: START
  227. Game is ready, press enter to accept
  228.  
  229.  
  230. Sent ready msg
  231. command: TIME
  232. Game is starting in 3 seconds
  233. command: TIME
  234. Game is starting in 2 seconds
  235. command: TIME
  236. Game is starting in 1 seconds
  237. command: ROUND
  238. Timer started
  239. Round 1
  240. Select your option:
  241. 1.Rock
  242. 2.Paper
  243. 3.Scissor
  244. 2
  245. 2: choosen
  246. pal@pal-ROG-Strix-GA35DX-G35DX:~/dv1619/lab4-spel/olofssondaniel/np_assignment4$
  247.  
  248.  
  249. client_watcher:
  250. command: FINISHED
  251. Finished Watching final score:
  252. 0 - 3
  253. 1.Play
  254. 2.Watch
  255. 3.Highscore
  256. 0.Exit
  257. 3
  258. command: Highscore
  259. Highscore
  260. Score: 3 - 1
  261. Score: 3 - 2
  262. Enter to leave
  263. pal@pal-ROG-Strix-GA35DX-G35DX:~/dv1619/lab4-spel/olofssondaniel/np_assignment4$
  264.  
  265.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement