{"id":129,"date":"2024-09-26T14:11:35","date_gmt":"2024-09-26T14:11:35","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_carpenter\/?p=129"},"modified":"2024-09-26T14:11:35","modified_gmt":"2024-09-26T14:11:35","slug":"free-friday-9-26-24","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_carpenter\/2024\/09\/26\/free-friday-9-26-24\/","title":{"rendered":"Free Friday 9\/26\/24"},"content":{"rendered":"\n<p>Today I began making a minesweeper game using tkinter from this youtube tutorial:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-contrast-color\"> <\/mark><a href=\"https:\/\/www.youtube.com\/watch?v=OqbGRZx4xUc\"><mark style=\"background-color:#F6F6F6\" class=\"has-inline-color has-contrast-color\">Python Game Development Project Using OOP \u2013 Minesweeper Tutorial (w\/ Tkinter) (youtube.com)<\/mark><\/a><\/p>\n\n\n\n<p>I had to stop because class ended at timestamp: 12:10 <\/p>\n\n\n\n<p>Here is a bit of the code I wrote:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from tkinter import *\n\n#Override the settings of the window\nroot = Tk()\nroot.configure(bg=\"Dark SeaGreen\")\nroot.geometry('1440x720')\nroot.title(\"Minesweeping Game\")\nroot.resizable(False, False)\n\n\ntop_frame = Frame(\n    root,\n    bg=\"lightblue\",# change later\n    width=1440,\n    height=180\n)\ntop_frame.place(x=0, y=0)\n\n#Run the window\nroot.mainloop()<\/code><\/pre>\n\n\n\n<p>This code opens a window and then takes a chunk of it and changes it to be a different color. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"534\" src=\"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-content\/uploads\/2024\/09\/image-1024x534.png\" alt=\"\" class=\"wp-image-130\" style=\"width:929px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-content\/uploads\/2024\/09\/image-1024x534.png 1024w, https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-content\/uploads\/2024\/09\/image-300x156.png 300w, https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-content\/uploads\/2024\/09\/image-768x400.png 768w, https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-content\/uploads\/2024\/09\/image.png 1426w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>That is an image of what happens when the code is run, I&#8217;ll continue working on it next Friday.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I began making a minesweeper game using tkinter from this youtube tutorial: Python Game Development Project Using OOP \u2013 Minesweeper Tutorial (w\/ Tkinter) (youtube.com) I had to stop because class ended at timestamp: 12:10 Here is a bit of the code I wrote: This code opens a window and then takes a chunk of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/129\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}