The Artima Developer Community
Sponsored Link

Java Buzz Forum
Checkers, Anyone?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
Checkers, Anyone? Posted: Dec 13, 2015 1:25 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: Checkers, Anyone?
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

Several months ago, I was asked to create a small Java library that can be accessed by an application to render a graphical user interface (GUI) for the game of Checkers. As well as rendering a checkerboard and checkers, the GUI must allow a checker to be dragged from one square to another. Also, a checker must be centered on a square and must not be assigned to a square that's occupied by another checker. In this post, I present my library.

Designing a Checkers GUI Library

What public types should the library support? In checkers, each of two players alternately moves one of its regular (non-king) checkers over a board in a forward direction only and possibly jumps the other player's checker(s). When the checker reaches the other side, it's promoted to a king, which can also move in a backwards direction. From this description, we can infer the following types:

To read this article in full or to leave a comment, please click here

Read: Checkers, Anyone?

Topic: Jigsaw Delays Push Java 9 Launch Date to 2017 Previous Topic   Next Topic Topic: The 2015 Revision of the Eclipse Development Process

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use