Skip to main content

Posts

Showing posts from October, 2016

**------------------------My_Checkers_Game (modified)----------------------**

So I am writing my fourth post, in the last post I described that in my checkers game I had completed my work up to diagonal motion, making checkers board, implementing logic for different motions, and giving message for invalid move and, informing the player1 or  player2 that it is your turn now, this was all the work I had done before. Now I have done some other things, that I have included some other functions by which my checkers game is able to capture the piece and the other piece will sit to the possible space around that captured piece. There are some other things that I am unable to use is keyboard handling of the game, because I can not actually thing that how to control a checkers game using arrows, and also if I succeed to get this functionality, the players will always prefer to use mouse. That's how it looks before game starts. and now if the players start playing, so it can be seen that few pieces have been captured and some have changed their positions. ...

"Checkers' pieces and its motion with mouse handling"

Hello once again guys, so this is my third post while I am making "The Checkers" game, so as I discussed in my last post that I have made few changes in my work, and the change is that instead of pyglet I am using Tkinter, and the reason is that it is quite easy to work using Tkinter, you don't even need to import any external toolkit because it is already installed in python, and there are many features that tkinter provides which make our work easier. Now, I just tell you that what I have done in implementing me checkers' game, so I am almost half way done with my game. I have created pieces on the board for two players, they are moving diagonally forward using mouse.                                                     In making this use the concepts of oops, worked on classes, objects,and some functions, and it is just about 200 lines' code for the work...

"Checkers' board"

Hello everyone!.. I am writing this post to tell you all, about my progress so far in making "The Checkers", and what I 've been doing so far . So, as in previous post I discussed about my planning in making the game. Now, I have started working for the implementation of the game . You can see the game board below which I made using this code; import pyglet from pyglet.window import key from pyglet.window import mouse from pyglet.window import gl   class checkers(pyglet.window.Window):      bgimage = pyglet.resource.image( 'a.png' )      def __init__( self ):          super (checkers, self ).__init__( 600 , 600 ,                resizable = False ,  # Make sure it is not resizable                caption = "checkers" ,  # Captio...