{"id":51,"date":"2025-12-12T15:05:48","date_gmt":"2025-12-12T15:05:48","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/r_najim\/?p=51"},"modified":"2025-12-12T15:05:48","modified_gmt":"2025-12-12T15:05:48","slug":"friday-december-12-2025","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/r_najim\/2025\/12\/12\/friday-december-12-2025\/","title":{"rendered":"Friday, December, 12, 2025"},"content":{"rendered":"\n<p>              Today This Free Friday I am Working on a project on YouTube a WPM Typing Test.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=NpmFbWO6HPU&amp;t=15102s\">https:\/\/www.youtube.com\/watch?v=NpmFbWO6HPU&amp;t=15102s<\/a><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import curses\nfrom  curses import wrapper\n\ndef main(stdscr):\n    curses.int_pair(1, curses.COLOR_GREEN, curses.COLOR_BLACK)\n    curses.int_pair(2, curses.COLOR_RED, curses.COLOR_BLACK)\n    curses.int_pair(3, curses.COLOR_WHITE, curses.COLOR_BLACK)\n\n    stdscr.clear()\n    stdscr.addstr(\"Hello world!\")\n    stdscr.refresh()\n    stdscr.getkey()\n\nwrapper(main)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code is to color the text the users type in game.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>def start_screen(stdscr):\n    stdscr.clear()\n    stdscr.addstr(\"Welcome to the Speed Typing Test!\")\n    stdscr.addstr(\"\\nPress any key to begin!\")\n    stdscr.refresh()\n    stdscr.getkey()\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code is the start screen in the Speed Typing Test game and to start game the user is ask to press any key to begin.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>def wpm_test(stdscr):\n    target_text = \"Hello world this is some test text for this app!\"\n    current_text = &#91;]\n\n    \n    while True:\n        key = stdscr.getkey()\n        current_text.append(key)\n\n        stdscr.clear()\n        stdscr.addstr(target_text)\n        stdscr.refresh()\n\n\n        for char in current_text:\n            stdscr.addstr(char, curses.color_pair(1))\n            \n        stdscr.refresh()<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code is to ask the user to type something and colors the the text the users was ask to type.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today This Free Friday I am Working on a project on YouTube a WPM Typing Test.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/51\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}