Homework 5 DrawerValidationTest.SetFromImage #65
Answered
by
ianwong1999
ianwong1999
asked this question in
Homeworks Q&A
-
Hi! Thanks for the exciting homework. I failed to pass the drawer test:
I tried doing the same as the validation test and it seems that, although it has an extra space, it does print two black pixels followed by two red pixels. Are there any configs that I am missing to set up the ftxui::Screener? |
Beta Was this translation helpful? Give feedback.
Answered by
ianwong1999
Sep 17, 2023
Replies: 1 comment 4 replies
-
Hmm. Interesting. Do you know why there is an extra space there? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry for the late reply, I just found out that I misunderstood the
dimension
parameter ofpixelator::Drawer
's constructor, I thought we had to create a ftxui screen withwidth=dimension.y*2
. When I just create the ftxui screen with the given argument without modifying, it passes the test. So while the actual output looks reasonable, maybe they have different implementations for the remaining space for the row internally. Sorry for the inconvenience haha.