Tracking movement/placement of game pieces

I would like to write a board game like backgammon (for the purpose of analyzing played games). I want to be able to read in a "game" (i.e. match rolls/movements/doubles). Then I want to be able to step through the game move by move, showing the moves visually.
I'm fairly new to java. I have written some Swing programs to read a file & display the contents in a JTable. But this has all been with pre-defined Java components.
I'm sure I will need to do custom drawing for a game like backgammon. I'm guessing that I will need to keep track of the following:
* all 24 available positions
* all 15 pieces for each player
* doubling cube
Is there an approach I should take to drawing pieces on the board? The placement is somewhat dynamic, in that the target space may already have pieces on which the new piece must be properly placed/drawn. Should they be written as derived JComponent's? Do I simply need to generate gif images for every possible stack that could be place on a position (i.e. 1-15 pieces)?
Eventually, I would like to be able to move pieces manually. What is the standard way to track hit points within a component? In this case, it would be one of the 24 positions on the board & doubling cube.
I would like to mimic the interface that NetGammon uses. Can anyone offer some insight (and code snipets) to get me started?
Thanx,
- Nick

i would have each position of the board be a memeber of a class extending List which draws the images it contains and nothing if it is empty.
or maybe i'd do something else entirely...

Similar Messages

  • Split track movies

    Howdy,
    already posted this over at LogicPro Help, apologies if I'm boring anyone.
    I work in tv composing, and frequently get sent split track movies (temp music on one side, everything else on the other).
    My current monitors (old Genelec 1029s) have a handy power stitch on the front, so I can switch off the temp side, and listen to my cue (in mono) in situ. But my new monitors (KH120s) have the power switch at the back.
    So I was wondering, how do people deal with their split track qts? I know I can extract audio, but that seems too time consuming, as I start a new project for every cue, and its a nightmare lining up the audio every time. And I don't want the movie audio coming through the main outs.
    Am I missing something really easy?
    I guess I could pull a cable out of the duet each time, but that doesn't seem very elegant...
    Thanks in advance

    To mute the speaker in OSX, use the Audio Midi Setup app. There you can mute the left or right channel separately.
    However, I wonder why you are not extracting the audio from the video. This is basic scoring workflow.
    You do it only once when you start a show and each new cue is just a "save as" copy of the previous cue (project) so the video/audio track is already in place.
    Once in Logic, You click-hold on the output icon (the double circle) and you can just select the left or right channel. I usually create two audio tracks with same copy of the split track audio file and have one selected to play only the left channel (dialog) and the other one to play the right channel (temp). Now they are technically two independent mono track (that you can pan left to right)
    This gives you complete mixing controls (if you have an external controller) for this tracks: solo, mute, eq, etc. Sometimes the production track has problems that you can fix (with automation) so it doesn't bother you when scoring with the dialog.
    Screener. Don't you have to make screeners, little quicktime files of you cues to send to the director/producer for approval? Having the dialog on a track in your project, you can quickly make a decent mix, even for your own show reel.
    Routing. Usually I have the dialog and temp tracks routed directly to a different channel on my audio interface, so it doesn't go through my master bus. This way they don't show up on the bounce and don't mess up my meters that I monitor constantly. Just for the export video procedure, I route them to the master bus.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Watching multiple audio track movies on Apple TV. PLEASE HELP...

    Hi, I hope somebody can help since I haven't been able to find any answer to this.
    When I rip a movie (with Handbrake) from one of my DVDs to place it into my iTunes library, I have the possibility to chose to extract different Audio Language Tracks. In fact, once the rip is done, I have a movie in iTunes that has two tracks (2 languages) in my case English and Spanish.
    Now, when I sync it to AppleTV, I always can only watch the movie in english. I don't want to lose the english track, but I do want to watch the movie in Spanish on my ATV.
    Is there a way to chose the Audio for multiple track movies on ATV? (ITunes does let you chose).
    Thanks for the help.
    Rheex

    Because it wasn't devised with you ripping DVDs in mind, and certainly since Take 2.0 update the focus is on rentals.
    It would be logical to offer multiple soundtracks/subtitles etc, but they would add to download size which will be an issue for some people - seems more likely they would offer soundtrack options other than Englisg outside US - ie choose English or another language to rent but not both.
    AC

  • Help trying to bounce a mono track in place with autotune plugin

    I am trying to render a vocal track which has an Antares Autotune plugin by using the bounce track in place. It works but no matter what I try, the new track is being created in stereo. The origional track is mono. What would I be doing wrong here? Thanks
    James

    Ah, Thank you, so you are saying that if I uncheck the Volume and Pan automation checkbox it should work. Maybe that's it then. My origional channel strip and regions are mono. I will try this and see what happens. I also noticed I don't have the last logic upgrade. I will also be upgrading. Thanks
    James

  • Can ATV play multi layered video track .mov files?

    Hi all,
    Front Row 2 cannot play multi layered video track .mov files for now,
    so I wonder if an ATV take 2 can play .mov files with 2 or more video track?

    HeyJP wrote:
    yeah, so far, it looks like it has to be pretty vanilla. Only a single h.264 track and an audio track.
    The new 5.1 rentals supposedly have 2 audio tracks - stereo for devices that can't handle 5.1 via HDMI and presmably to give stereo audio out via the RCA sockets, and the 5.1 passthrough.
    It may be that with time more fucntionality will be added to movie playback, but I'm not holding my breath.
    AC

  • Nokia x3-02 cannot move app from games to collecti...

    Hi everyone
    I've downloaded an application which went into the games folder. I opened it and used it. Then I decided to move it to the collections folder, but it gives me the message that the "name already exists", although I never moved it there. When I open the collections folder, the application does not exist there. Any ideas on how to move it from games to collections?
    Thanks

    Well, maybe there is an apps with the same first letter as ones u use, remove it, and than put the one you want

  • ARRGH! Can't Get Bounce Tracks in Place to Work....Advice Needed!

    OK, I have Stylus RMX instantiated as a multi-output instance. I have 3 patches loaded, each assigned to a different RMX output, and have added (using the plus sign) additional AUX tracks in the mixer. So I have 3 stereo Auxes basically with sounds coming from Stylus. The 1-2 Outs of RMX are not being used.
    When I highlight the RMX track in the Arrange, and just to make sure I also highlight all the other regions on the additional AUX tracks, I choose BOUNCE TRACK IN PLACE. I also choose "Bounce multi outputs to SEPARATE Tracks" option in the dialog.
    But all that ends up happening is I get ONE stereo file, of the patch playing on the first two stereo outs. So the other two "Tracks" of patches are not in the bounce, and not on their own separate tracks. It's like this is broken or something.
    Anything I'm doing wrong here?
    Thanks
    Tom

    Update:
    Further experimentation:
    1 Does not work in Kontakt 4
    2 Does not work in RMX
    3 DOES work in Superior and EZY Drummer.
    So it must have something to do with how the plugs are written???
    Have reported to Apple...
    TH

  • I'm being charged for an extre moves in a game that I don't even have on my phone how can i get refunded?

    I'm being charged for an extre moves in a game that I don't even have on my phone how can i get refunded?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Track Multiple States(Moves) in a game

    Hello,
    For one of my classes, we are writing a Mancala game and have an undo button to take back 3 moves. I am using ObjectOutputStream to save the file and reload the saved file if someone clicks undo.
    The problem I am having is that I have to keep track of last 3 states (not one which I am doing). Any suggestions?
    Thanks and happy thanksgiving ;)

    kevinaworkman wrote:
    Why don't you just have a Stack of those game states? When you click undo, just load the state that's on top of the stack.For all we know the OP may already be using the javax.swing.undo package, in which case a Stack would just be a crude version of the data structure already in use. But we haven't been told that. It would really help to know how the undo and redo processing is being handled in the existing code before trying to recommend changes to it.
    Oops, sorry... we have indeed been told that, and the undo/redo strategy is to simply serialize the state of the game to a file. And apparently that doesn't scale to more than one level of undo. So, if you were stuck on that strategy, you could serialize the state to more than one file, and keep track of the files... using a Stack if you liked!

  • Why won't Firefox accept a "continue button", update shopping cart, or allow pieces to move in a game puzzle?

    Stats: Intel iMac, running 10.6, Firefox 4 and now 8
    This started happening about 2 months ago, first with Barnes and Noble trying to buy an item, then on Southwest.com for the puzzle pieces in a contest, and today on Jacquie Lawson cards with Preview. On Martha Stewart's website for the daily cookie recipe, the picture and Print function have disappeared. I will describe each one.
    1. On the Barnes and Noble site, I can search and put an item in the Shopping Cart. However, if I want to change the item/Update OR complete the purchase, the gear just spins and spins. I have to quit Firefox and use Safari.
    2. Southwest is running a 6 week contest. The past 2 weeks involve dragging a label to a suitcase and moving puzzle pieces around to complete a picture. I could not drag any items in both contests. So the entries for 2 weeks could not be submitted.
    3. On Martha Stewart's website, a recipe with food picture and a Print function no longer appear. This is a new behavior since upgrading to FF8. Here is the URL http://www.marthastewart.com/344826/pumpkin-whoopie-pies-with-cream-cheese-f?xsc=eml_cod_2011_11_10&om_rid=Nsg6jH&om_mid=_BOu9CwB8eBVWzk
    4. On Jacque Lawson's site. you can personalize a card, then Preview it. The Preview button did not work. http://www.jacquielawson.com/sendcard.pd

    Could you test the site in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • 870A Fuzion Power has problem with keyboard and mouse movement only in games.

    Hey guys,
    recently built a new system and chose to go with the 870A Fuzion Power mainboard, everything has gone very smoothly execpt for one problem, only when I play games like Crysis 2 ect the mouse seems to jolt around now and again and the keyboard decides to stop responding if I hold down the movement keys, and this is only in game not surfing the web for example. Now, I am using a wireless mouse and keyboard but I plugged in a PS/2 keyboard and the exact same thing happened. I've installed all of the drivers that came with this board and the drivers for the mouse and keyboard. Any of you guys ever had this sort of problem or know how to fix this?
    Thanks.

    I bought a new Macbook pro in june 2010, I didn't have any keyboard or mouse issues prior to upgrading to 10.6.4 supposedly this update was made to fix some issues with keyboard and mouse becoming unresponsive. For me the opposite happened. after the upgrade, my keyboard and mouse (trackpad) becomes sometimes partially unresponsive or totally unresponsive. the only way to solve the problem is by completely turning of the computer and turning back on.. granted it doesn't happen very often.. generally once every about 2-3 weeks but it is still annoying though..
    I didn't have a chance to use the computer too much on the previous version (10.6.3) so I don't know if it is software related or hardware related.. any thoughts?
    Message was edited by: msoued

  • Audio tracks move around by themselves after I render!

    I've been using keyframes to alter the volume of audio tracks. When I render the audio, I find that either the track itself I'm working on - or totally unrelated tracks - gets chopped up and in the wrong order, as if somebody had "cut and pasted" different parts of the clip and dumped them down in the wrong place!
    This is extremely irritating and has all the signs of a bug. Is that the case, or am I doing something wrong?
    Please help as I have a tight deadline and was not expecting something so crazy to happen via simple volume editing!
    Thanks.
    p.s. why can't I choose Final Cut Express on the product list?

    You really need to provide the info that Mr. Wolsky requested to get a good answer.
    Certainly the difference is sampling rate is a problem, but to advise you correctly more information is needed - to make sure you are using video with a codec and frame rate that is appropriate for FCE.
    If you are using video directly from a DSLR,, for example, in H.264 at 24fps, then you have additional problems that can cause the symptoms you are reporting.
    If it is to much info for you to type, then select a source clip in the browser and type Command+9, then take a screen shot of the item properties and post the screen shot here.
    Do the same with your sequence.
    MtD

  • Track Moves Back 1/16th Note

    I will record something without any problem or signs of latency while recording, but as soon as I stop recording an audio track it will automatically move backward exactly one 1/16th note. It does not do this with midi.
    The changed occured while I was using the DAW and I feel like it might have been a button or series of buttons I pressed unconsciously/on accident that made it happen. I really don't think it's a latency issue, I think Logic thinks I want my tracks to be set back 1/16th but I'm at a loss to know how to fix it
    Thanks in advance!

    sneakygreens wrote:
    Awesome! Yes it worked!
    I have no idea how this happened... Is there any keystroke sequence that can do this? Weird...
    You're not the first one that's had this happen, was this by any chance an imported/opened Logic-9 project? Some Logic 9 projects when opened in X have random values in the inspector and preference settings.
    There are a few others that have reported similar with new projects.

  • In CS6, can I track movement (fixed camera) like I could in CS5

    Hey there,
    Just trying to track some text to a moving hand, filmed on a tripod so it's fixed view. I could do it in CS5 but I am now using CS6 and the 3D tracker only seems to want to track the environment, not movement within it.
    Please help!
    Thanks,
    Jonny

    The old 2D tracker is still there. Just select it in the menu.
    Mylenium

  • Is it possible to place Facebook games using Firefox? Everytime i try, they never completely load.

    I have recently changed my ISP, therefore, i know my computer is not the problem, although some of the settings may be. My new ISP, AOL, instructed me to use Firefox for playing Facebook games, and that has not worked either. Every time i have attempted to log onto the game, it loads to the EXACT same place and that is it. Never any further. I have no idea what is going on, or how to correct it, since there are no error messages being given or any type of messages for that matter. It just sits idle. Please help!!!

    Ever since I upgraded firefox to 3.6 I can't play most of my facebook games. I use windows vista home basic. I have uninstaled flash player and reinstalled it numerous times..I don't know what to do.
    Thanks for any input!

Maybe you are looking for

  • Eclipse loses installed software after update. How to manage?

    Whenever eclipse gets updated with `pacman -Syu` I lose all my installed software. As you can imagine, this is really annoying because when I start eclipse there are zombie buttons in the UI that no longer do anything because those plugins aren't ins

  • Problems with my INTO statements.

    Connection connect; JTextArea output; JTextField textF; public void actionPerformed ( ActionEvent e ) try { Statement stmt = connect.createStatement(); String query = "INSERT INTO myTable" + "VALUES ( '" + textF.getText() + "')"; stmt.executeUpdate (

  • Cannot Promote Server 2012 R2 Server to DC??

    I have a freshly installed Server 2012 R2 Core Edition with all of the latest updates as of today.  I did the following: - Changed name to DC6 - Joined it to the existing domain. - Logged in as domain admin. - Set fixed IP address & set DNS servers t

  • URGENT - ora:processxslt Error

    I am using the ora:processxslt function in my assign and below is the following syntax: <copy> <from expression="ora:processXSLT('FormatDate.xsl',bpws:getVariableData('DFUReceieve_Read_InputVariable_1','OrderDemands','/ns6:OrderDemands/ns6:OrderDeman

  • Homesharing, iPOD can't see my PC

    Can someone help me, I have set up my laptop and iPOD with homesharing but my iPOD is not seeing my laptop.  Secondly I cannot find the library section on my iPOD, when I press the more button I have various folders i.e. podcast, itunes, compilations