Hi All,

In my books, I have too many tables which I have to memorize. I just want to create a game so that I can memorize it through the game.

I am very new to perl. I want to create a game having a main window. It will contain two frames f1 and f2. f1 will be having a table(5*5) which is blank and don't have anything. f2 will have 5*5=25 labels. Also, two buttons in the bottom to reset and exit.

Now, what I want is to drag and drop the label in its corresponding cell of the table. If i drag a label and drop it on the correct cell then it will accept the label and it will be placed properly from f2 to f1 at correct position. But, if the label is dropped on the incorrect cell on f1, then the label will be placed back at previous place i.e. in f1.Also, reset button will place all the labels back to their respective places in f2.

I want two tabs. One will be the game and other will have all the text-fields to set the labels. Please provide me with a solution as I have already confused with the drag and drop module and canvas. Thanks in advance.


In reply to Creating a drag and drop game to memorize by kartik.sh89

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.