Skip to main content

Posts

Showing posts from 2016

Introduction to the new project

              Hello everyone, This is my introductory blog, for a new project of CT II. I have started working on this new game project, which is "Piano Tiles". In my first project I was using "Tkinter", but for this game I will be using "Pygame", because I think making "Piano Tiles" will become easy if I use "Pygame". About Pygame:     Pygame is a set of python modules specially designed for writing games. It has amazing                      features with excellent SDL library. Also by using pygame, the logic can be implemented in                small amount of code. Initial plan:    So initially I have desided to make the game window for the game and hopefully add music into it.      Then from on wards I will start working in the same way, making logic for the game by analyzing      the conditions ...

**------------------------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...