Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +--------------+
- | Make output: |
- +--------------+
- 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
- +--------------+
- | Test output: |
- +--------------+
- Total score available for this exercise: 100
- Testing standard window: display initial frame, then quit...
- Input sequence: 'q'
- Test passed.
- Score for this part: 5/5
- Testing standard window: zombie takes one step in each of the original directions...
- Input sequence: '6842q'
- Test passed.
- Score for this part: 5/5
- Testing standard window: zombie takes 10 steps in each of the original directions...
- Input sequence: '6666666666888888888844444444442222222222q'
- Test passed.
- Score for this part: 5/5
- Testing standard window: user enters spaces, but the score still updates properly...
- Input sequence: ' q'
- Screen does not match expected value at frame number 1.
- Expected frame: (((Frame
- width=80
- height=24
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,48
- 64,9,90
- 0,23,77
- 1,23,101
- 2,23,110
- 3,23,117
- 4,23,58
- 6,23,56
- 8,23,61
- 10,23,78
- 11,23,59
- 13,23,50
- 15,23,61
- 17,23,83
- 18,23,59
- 20,23,54
- 22,23,61
- 24,23,69
- 25,23,59
- 27,23,52
- 29,23,61
- 31,23,87
- 32,23,59
- 34,23,57
- 36,23,61
- 38,23,78
- 39,23,69
- 40,23,59
- 42,23,51
- 44,23,61
- 46,23,83
- 47,23,69
- 48,23,59
- 50,23,55
- 52,23,61
- 54,23,78
- 55,23,87
- 56,23,59
- 58,23,49
- 60,23,61
- 62,23,83
- 63,23,87
- 64,23,59
- 66,23,113
- 68,23,61
- 70,23,81
- 71,23,117
- 72,23,105
- 73,23,116
- 74,23,46
- EndFrame
- )))
- Actual frame: (((Frame
- width=80
- height=24
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,49
- 64,9,90
- 0,23,77
- 1,23,101
- 2,23,110
- 3,23,117
- 4,23,58
- 6,23,56
- 8,23,61
- 10,23,78
- 11,23,59
- 13,23,50
- 15,23,61
- 17,23,83
- 18,23,59
- 20,23,54
- 22,23,61
- 24,23,69
- 25,23,59
- 27,23,52
- 29,23,61
- 31,23,87
- 32,23,59
- 34,23,57
- 36,23,61
- 38,23,78
- 39,23,69
- 40,23,59
- 42,23,51
- 44,23,61
- 46,23,83
- 47,23,69
- 48,23,59
- 50,23,55
- 52,23,61
- 54,23,78
- 55,23,87
- 56,23,59
- 58,23,49
- 60,23,61
- 62,23,83
- 63,23,87
- 64,23,59
- 66,23,113
- 68,23,61
- 70,23,81
- 71,23,117
- 72,23,105
- 73,23,116
- 74,23,46
- EndFrame
- )))
- Test failed.
- Score for this part: 0/5
- Testing standard window: zombie takes one step in each of the diagonal directions...
- Input sequence: '9713q'
- Test passed.
- Score for this part: 10/10
- Testing standard window: zombie takes 10 steps in each of the diagonal directions...
- Input sequence: '9999999999777777777711111111113333333333q'
- Test passed.
- Score for this part: 10/10
- Testing standard window: zombie takes many steps in randomly chosen directions...
- Seeding random number generator with 2107058.
- Input sequence: '2968443296931795238722993892169829998781179125891313536273164751778485942439712688448592226615236887q'
- Screen does not match expected value at frame number 16.
- Expected frame: (((Frame
- width=80
- height=24
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,50
- 68,8,90
- 0,23,77
- 1,23,101
- 2,23,110
- 3,23,117
- 4,23,58
- 6,23,56
- 8,23,61
- 10,23,78
- 11,23,59
- 13,23,50
- 15,23,61
- 17,23,83
- 18,23,59
- 20,23,54
- 22,23,61
- 24,23,69
- 25,23,59
- 27,23,52
- 29,23,61
- 31,23,87
- 32,23,59
- 34,23,57
- 36,23,61
- 38,23,78
- 39,23,69
- 40,23,59
- 42,23,51
- 44,23,61
- 46,23,83
- 47,23,69
- 48,23,59
- 50,23,55
- 52,23,61
- 54,23,78
- 55,23,87
- 56,23,59
- 58,23,49
- 60,23,61
- 62,23,83
- 63,23,87
- 64,23,59
- 66,23,113
- 68,23,61
- 70,23,81
- 71,23,117
- 72,23,105
- 73,23,116
- 74,23,46
- EndFrame
- )))
- Actual frame: (((Frame
- width=80
- height=24
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,49
- 68,8,90
- 0,23,77
- 1,23,101
- 2,23,110
- 3,23,117
- 4,23,58
- 6,23,56
- 8,23,61
- 10,23,78
- 11,23,59
- 13,23,50
- 15,23,61
- 17,23,83
- 18,23,59
- 20,23,54
- 22,23,61
- 24,23,69
- 25,23,59
- 27,23,52
- 29,23,61
- 31,23,87
- 32,23,59
- 34,23,57
- 36,23,61
- 38,23,78
- 39,23,69
- 40,23,59
- 42,23,51
- 44,23,61
- 46,23,83
- 47,23,69
- 48,23,59
- 50,23,55
- 52,23,61
- 54,23,78
- 55,23,87
- 56,23,59
- 58,23,49
- 60,23,61
- 62,23,83
- 63,23,87
- 64,23,59
- 66,23,113
- 68,23,61
- 70,23,81
- 71,23,117
- 72,23,105
- 73,23,116
- 74,23,46
- EndFrame
- )))
- Test failed.
- Score for this part: 0/10
- Testing resized window: display initial frame, then quit...
- Input sequence: 'q'
- Test passed.
- Score for this part: 5/5
- Testing resized window: zombie takes one step in each of the original directions...
- Input sequence: '6842q'
- Test passed.
- Score for this part: 5/5
- Testing resized window: zombie takes 10 steps in each of the original directions...
- Input sequence: '6666666666888888888844444444442222222222q'
- Test passed.
- Score for this part: 5/5
- Testing resized window: user enters spaces, but the score still updates properly...
- Input sequence: ' q'
- Screen does not match expected value at frame number 1.
- Expected frame: (((Frame
- width=148
- height=40
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,48
- 118,16,90
- 0,39,77
- 1,39,101
- 2,39,110
- 3,39,117
- 4,39,58
- 6,39,56
- 8,39,61
- 10,39,78
- 11,39,59
- 13,39,50
- 15,39,61
- 17,39,83
- 18,39,59
- 20,39,54
- 22,39,61
- 24,39,69
- 25,39,59
- 27,39,52
- 29,39,61
- 31,39,87
- 32,39,59
- 34,39,57
- 36,39,61
- 38,39,78
- 39,39,69
- 40,39,59
- 42,39,51
- 44,39,61
- 46,39,83
- 47,39,69
- 48,39,59
- 50,39,55
- 52,39,61
- 54,39,78
- 55,39,87
- 56,39,59
- 58,39,49
- 60,39,61
- 62,39,83
- 63,39,87
- 64,39,59
- 66,39,113
- 68,39,61
- 70,39,81
- 71,39,117
- 72,39,105
- 73,39,116
- 74,39,46
- EndFrame
- )))
- Actual frame: (((Frame
- width=148
- height=40
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,49
- 118,16,90
- 0,39,77
- 1,39,101
- 2,39,110
- 3,39,117
- 4,39,58
- 6,39,56
- 8,39,61
- 10,39,78
- 11,39,59
- 13,39,50
- 15,39,61
- 17,39,83
- 18,39,59
- 20,39,54
- 22,39,61
- 24,39,69
- 25,39,59
- 27,39,52
- 29,39,61
- 31,39,87
- 32,39,59
- 34,39,57
- 36,39,61
- 38,39,78
- 39,39,69
- 40,39,59
- 42,39,51
- 44,39,61
- 46,39,83
- 47,39,69
- 48,39,59
- 50,39,55
- 52,39,61
- 54,39,78
- 55,39,87
- 56,39,59
- 58,39,49
- 60,39,61
- 62,39,83
- 63,39,87
- 64,39,59
- 66,39,113
- 68,39,61
- 70,39,81
- 71,39,117
- 72,39,105
- 73,39,116
- 74,39,46
- EndFrame
- )))
- Test failed.
- Score for this part: 0/5
- Testing resized window: zombie takes one step in each of the diagonal directions...
- Input sequence: '9713q'
- Test passed.
- Score for this part: 10/10
- Testing resized window: zombie takes 10 steps in each of the diagonal directions...
- Input sequence: '9999999999777777777711111111113333333333q'
- Test passed.
- Score for this part: 10/10
- Testing resized window: zombie takes many steps in randomly chosen directions...
- Seeding random number generator with 2107058.
- Input sequence: '2968443296931795238722993892169829998781179125891313536273164751778485942439712688448592226615236887q'
- Screen does not match expected value at frame number 16.
- Expected frame: (((Frame
- width=148
- height=40
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,50
- 122,15,90
- 0,39,77
- 1,39,101
- 2,39,110
- 3,39,117
- 4,39,58
- 6,39,56
- 8,39,61
- 10,39,78
- 11,39,59
- 13,39,50
- 15,39,61
- 17,39,83
- 18,39,59
- 20,39,54
- 22,39,61
- 24,39,69
- 25,39,59
- 27,39,52
- 29,39,61
- 31,39,87
- 32,39,59
- 34,39,57
- 36,39,61
- 38,39,78
- 39,39,69
- 40,39,59
- 42,39,51
- 44,39,61
- 46,39,83
- 47,39,69
- 48,39,59
- 50,39,55
- 52,39,61
- 54,39,78
- 55,39,87
- 56,39,59
- 58,39,49
- 60,39,61
- 62,39,83
- 63,39,87
- 64,39,59
- 66,39,113
- 68,39,61
- 70,39,81
- 71,39,117
- 72,39,105
- 73,39,116
- 74,39,46
- EndFrame
- )))
- Actual frame: (((Frame
- width=148
- height=40
- 30,0,83
- 31,0,99
- 32,0,111
- 33,0,114
- 34,0,101
- 35,0,58
- 37,0,49
- 122,15,90
- 0,39,77
- 1,39,101
- 2,39,110
- 3,39,117
- 4,39,58
- 6,39,56
- 8,39,61
- 10,39,78
- 11,39,59
- 13,39,50
- 15,39,61
- 17,39,83
- 18,39,59
- 20,39,54
- 22,39,61
- 24,39,69
- 25,39,59
- 27,39,52
- 29,39,61
- 31,39,87
- 32,39,59
- 34,39,57
- 36,39,61
- 38,39,78
- 39,39,69
- 40,39,59
- 42,39,51
- 44,39,61
- 46,39,83
- 47,39,69
- 48,39,59
- 50,39,55
- 52,39,61
- 54,39,78
- 55,39,87
- 56,39,59
- 58,39,49
- 60,39,61
- 62,39,83
- 63,39,87
- 64,39,59
- 66,39,113
- 68,39,61
- 70,39,81
- 71,39,117
- 72,39,105
- 73,39,116
- 74,39,46
- EndFrame
- )))
- Test failed.
- Score for this part: 0/10
- Your overall score for this exercise: 70/100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement