13 Greedy bird

take laws and regulations lightly : Kind of like the bomber , Control the walking position No problem ok

 

 

 

14 TicTacToe 888

take laws and regulations lightly : I bet you've played this in class , Think about how many books it took to play at the same table .

 

 

 

 

 

Source code sharing :
from tkinter import * import tkinter.messagebox as msg root = Tk()
root.title('TIC-TAC-TOE---Project Gurukul') # labels Label(root, text="player1
: X", font="times 15").grid(row=0, column=1) Label(root, text="player2 : O",
font="times 15").grid(row=0, column=2) digits = [1, 2, 3, 4, 5, 6, 7, 8, 9] #
for player1 sign = X and for player2 sign= Y mark = '' # counting the no. of
click count = 0 panels = ["panel"] * 10 def win(panels, sign): return
((panels[1] == panels[2] == panels[3] == sign) or (panels[1] == panels[4] ==
panels[7] == sign) or (panels[1] == panels[5] == panels[9] == sign) or
(panels[2] == panels[5] == panels[8] == sign) or (panels[3] == panels[6] ==
panels[9] == sign) or (panels[3] == panels[5] == panels[7] == sign) or
(panels[4] == panels[5] == panels[6] == sign) or (panels[7] == panels[8] ==
panels[9] == sign)) def checker(digit): global count, mark, digits # Check
which button clicked if digit == 1 and digit in digits: digits.remove(digit)
##player1 will play if the value of count is even and for odd player2 will play
if count % 2 == 0: mark = 'X' panels[digit] = mark elif count % 2 != 0: mark =
'O' panels[digit] = mark button1.config(text=mark) count = count + 1 sign =
mark if (win(panels, sign) and sign == 'X'): msg.showinfo("Result", "Player1
wins") root.destroy() elif (win(panels, sign) and sign == 'O'):
msg.showinfo("Result", "Player2 wins") root.destroy() if digit == 2 and digit
in digits: digits.remove(digit) if count % 2 == 0: mark = 'X' panels[digit] =
mark elif count % 2 != 0: mark = 'O' panels[digit] = mark
button2.config(text=mark) count = count + 1 sign = mark if (win(panels, sign)
and sign == 'X'): msg.showinfo("Result", "Player1 wins") root.destroy() elif
(win(panels, sign) and sign == 'O'): msg.showinfo("Result", "Player2 wins")
root.destroy() if digit == 3 and digit in digits: digits.remove(digit) if count
% 2 == 0: mark = 'X' panels[digit] = mark elif count % 2 != 0: mark = 'O'
panels[digit] = mark button3.config(text=mark) count = count + 1 sign = mark if
(win(panels, sign) and sign == 'X'): msg.showinfo("Result", "Player1 wins")
root.destroy() elif (win(panels, sign) and sign == 'O'): msg.showinfo("Result",
"Player2 wins") root.destroy() if digit == 4 and digit in digits:
digits.remove(digit) if count % 2 == 0: mark = 'X' panels[digit] = mark elif
count % 2 != 0: mark = 'O' panels[digit] = mark button4.config(text=mark) count
= count + 1 sign = mark if (win(panels, sign) and sign == 'X'):
msg.showinfo("Result", "Player1 wins") root.destroy() elif (win(panels, sign)
and sign == 'O'): msg.showinfo("Result", "Player2 wins") root.destroy() if
digit == 5 and digit in digits: digits.remove(digit) if count % 2 == 0: mark =
'X' panels[digit] = mark elif count % 2 != 0: mark = 'O' panels[digit] = mark
button5.config(text=mark) count = count + 1 sign = mark if (win(panels, sign)
and sign == 'X'): msg.showinfo("Result", "Player1 wins") root.destroy() elif
(win(panels, sign) and sign == 'O'): msg.showinfo("Result", "Player2 wins")
root.destroy() if digit == 6 and digit in digits: digits.remove(digit) if count
% 2 == 0: mark = 'X' panels[digit] = mark elif count % 2 != 0: mark = 'O'
panels[digit] = mark button6.config(text=mark) count = count + 1 sign = mark if
(win(panels, sign) and sign == 'X'): msg.showinfo("Result", "Player1 wins")
root.destroy() elif (win(panels, sign) and sign == 'O'): msg.showinfo("Result",
"Player2 wins") root.destroy() if digit == 7 and digit in digits:
digits.remove(digit) if count % 2 == 0: mark = 'X' panels[digit] = mark elif
count % 2 != 0: mark = 'O' panels[digit] = mark button7.config(text=mark) count
= count + 1 sign = mark if (win(panels, sign) and sign == 'X'):
msg.showinfo("Result", "Player1
 

This is about 14 individual Python Games The article on source code sharing is introduced here , More relevant 14 individual Python Please search Zhengyin studio for game content
Previous articles or continue to browse the relevant articles below I hope you will support Zhengyin studio in the future !

Code has been written so far 20 How many days , From scratch   from 0 Browse to now on the hot list from 0 Fans to 500 powder   Thank you for your support all the way . It will bring you more dry goods in the future
I hope you can make more comments I will reply one by one Love you

 

Technology
©2019-2020 Toolsou All rights reserved,
【C++ Must see for entry 】C++ from 0 reach 1 Introductory programming axios Interceptor packaging and use Spring Boot Interview must ask : Automatic configuration principle VMware 16 install centos 7 Detailed tutorial C Language data structure - Sequence table delete duplicates V2.0.0 The 12th Blue Bridge Cup c++b Group personal problem solving On sending data from serial port single chip microcomputer to upper computer centos7 install RabbitMqjava Polymorphic array of opencv-python Fourier transform and inverse transform