How can i connect imagine a Qt interface(C++) with a logic in java. I feel like I’ve should know this already but I don’t, I know there are API but I don’t want to do it,

More context: They told me to write an aplication, game such as 4 connect, battleship or that kind of games, so I’ve thought to make the “snakes and ladders”, i knew how i could do the 2 thinks separately but I don’t know how to connect the frontend with backend, even tho I knew the games should works with threads. So I don’t know if I could do it with the interface in Qt, because the main porpouse of the practice is to work with threads

  • mcmodknower@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 days ago

    Does the frontend need to be written in C++, or can you write the frontend in java too (in a JFrame from the javax.swing package)?

    • PauMasia@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      No, is not mandatory, and i dont know if it could handle threads on the graphic one, and i think i couldn’t try the main porpous of the practice