How can I create a GUI for a card game project where players can select cards to play without changing the existing logic functions?
The current implementation works in a terminal, and I want to add a GUI while keeping the backend logic unchanged.
I’ve searched for solutions online, but they all involve changes to the whole code . they simply write the code from scratch in “qt creator “. I would like the GUI to allow players to view their cards, select one, and then have the score calculated using the existing logic. How can I achieve this by adding front-end code while preserving most of the backend logic and keep the code unchanged?
I mean dont want to change string to qstring in the whole code and things like that.
I really need guidance step by step because I dont know where and how to start at all.
I don’t emphasize on using Qt. Any solution is welcomed. Thanks!
I’ve looked for solutions online, but they all involve making extensive changes to the entire codebase. What I need is to develop a separate front-end GUI that interacts with the existing logic while keeping the code mostly intact. The code is written in C++ and follows an object-oriented programming approach.
pouya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.