| Summary: | The program cannot display all cards after code refactoring from text to text art | ||
|---|---|---|---|
| Product: | 2021A-CS3343-Gp17-Big2PokerGame | Reporter: | CHAN Tsz Yin <tychan423-c> |
| Component: | GameController | Assignee: | Chung Ka Shing <kaschung4-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | hwchan58-c, kaschung4-c, waisumpo2-c, yuctam4-c, yuenchong9-c |
| Priority: | High | ||
| Version: | 3.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Deadline: | 2020-12-04 | ||
|
Description
CHAN Tsz Yin
2020-12-04 11:44:11 HKT
The program displays error messag I found out that the program cannot output all the cards when they are refactored from text-based card to text-art-based card. This is a very urgent issue, please solve it AS SOON AS POSSIBLE! In order to continue other progress, I have recovered the code back to text-based card version. My first projection to this error is the program failed to get the text-art-card and therefore none of the cards can be displayed. I will rewrite the format and function of converting the text to text-art. I removed the return text-art function in Card class first. I realize this way is incorrect as it is not Card class's responsibility. I will decide if the modification will be made in either Hand class, Play class or GameController class soon. I changed the way generating text art card and apply it in GameController class. The algorithm of creating text-art-card card by card is incorrect. My current solution is to create several line objects and output them with dedicated line format line by line. Dear all, I changed the way generating text-art cards with my new solution, it seems works well. Please help me double check. There is a minor issue that there is extra space in later card which leading the output format is a bit incorrect after 10th cards. I added more checking conditions to prevent redundant space issue. Please help me check if there is other issues. Thaknks! Double confirmed and it works nice now! |