Colorwars: Python Integrative Programming
- LA Nuñez
- Mar 13, 2020
- 2 min read
What is Colorwars?
Colorwars is a game that challenges your focus, attention and speed. It’s a simple game that presents random texts on the screen with different random text color that you will have to see in order to get a point. View your almanac with the score you gathered and see what’s in it. Play with your heart's content and unlock all the colors.

It was a project created for the course Integrative Programming where it highlights the use of Python programming language. There were several Python libraries and modules that were utilized for this project. The most important utilization in the game was the Python Graphical User Interface (GUI) library known as Tkinter.
Tkinter is a beginner friendly GUI development libraries. The syntax are easy to follow, and it supports wide scope of widgets for canvas, buttons, labels, input fields, checkboxes, and scroll buttons. But the most beneficial utilization made with Tkinter in the game was the grid system and toplevel widgets.
How do your conquer in Colorwars?

Tactic 1: Pay attention to the color of the text.
Tactic 2: Type in the color of the text as fast as possible.
Tactic 3: Race against the time.
Tactic 4: Collect points to unlock the colors in the almanac.

Colorwars Under Scrutiny
As part of a research project, we asked 20 respondents to play Colorwars. 15 disagreed that the system was difficult to use; 11 agree that they would use the system frequently; and 12 agreed that they felt confident while using the system.

Overall, the game received good feedbacks. At the same time, it was important to note that the respondents did not experience any problems while playing the game. The findings also proved that the respondents find it easy to navigate through the game because of its organized UI. The game also strike the emotion of the users as they feel confident to use our system and that they like to play the game frequently because it complements their competitive nature.

Souce Code
Colorwars was made with Python Programming. If you're interested to see the whole source code, you can view it here. Thus, a fair warning to all that the source code might never work for all as some files are needed for the program. Unfortunately, there is no Github repository made for Colorwars.
#++++++++++++++++ THE DRIVER CODE +++++++++++++++++++++#
from trylibf.Colorwarslib import *
from tkinter import *
import pygame
if __name__ == '__main__':
pygame.mixer.init()
pygame.mixer.music.load(r'C:\Colorwars\song.mp3')
pygame.mixer.music.play(999)
root = ChoiceApp()
root.title('Color Wars -- In Loving Memory')
root.geometry('1600x900+150+70')
root.iconbitmap(r'C:\Colorwars\CWiconA.ico')
root.mainloop()
#++++++++++++++++ END OF DRIVER CODE ++++++++++++++++++#




Comments