{"id":3121,"date":"2022-09-13T15:48:53","date_gmt":"2022-09-13T10:48:53","guid":{"rendered":"https:\/\/www.edopedia.com\/blog\/?p=3121"},"modified":"2022-09-13T15:48:56","modified_gmt":"2022-09-13T10:48:56","slug":"how-to-make-python-checkers-game-full-source-code","status":"publish","type":"post","link":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/","title":{"rendered":"How to Make Python Checkers Game? [Full Source Code]"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to make <strong>Python Checkers Game<\/strong>. You will get the complete <strong>Python checkers game source code<\/strong> so that you can try it yourself.<\/p>\n\n\n\n<p>Basically, checkers is a strategy-based <strong>board game<\/strong> that people love to play with their friends and family in their free time.<\/p>\n\n\n\n<p>Today, I will use Python 3 and the PyGame library to build this <strong>Python Checkers Game<\/strong>. I hope it will also improve your <strong>Python game development<\/strong> experience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Checkers Game Source Code<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Install PyGame<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">pip install pygame<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">code.py<\/h2>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">import pygame\nimport math\nimport random\n\n# Define some colors\nBLACK    = (   0,   0,   0)\nWHITE    = ( 255, 255, 255)\nGREEN    = (   0, 255,   0)\nRED      = ( 255,   0,   0)\nBLUE     = (   0,   0, 255)\nYELLOW   = ( 255, 255,   0)\nTRANS    = (   1,   2,   3)\n\n# CONSTANTS:\nWIDTH = 700\nHEIGHT = 700\nMARK_SIZE = 50\n\nclass Game:\n    &quot;&quot;&quot;class to keep track of the status of the game.&quot;&quot;&quot;\n    def __init__(self):\n        &quot;&quot;&quot;\n        Start a new game with an empty board and random player going first.\n        &quot;&quot;&quot;\n        self.status = 'playing'\n        self.turn = random.randrange(2)\n        self.players = ['x','o']\n        self.selected_token = None\n        self.jumping = False\n        pygame.display.set_caption(&quot;%s's turn&quot; % self.players[self.turn % 2])\n        self.game_board = [['x','-','x','-','x','-','x','-'],\n                           ['-','x','-','x','-','x','-','x'],\n                           ['x','-','x','-','x','-','x','-'],\n                           ['-','-','-','-','-','-','-','-'],\n                           ['-','-','-','-','-','-','-','-'],\n                           ['-','o','-','o','-','o','-','o'],\n                           ['o','-','o','-','o','-','o','-'],\n                           ['-','o','-','o','-','o','-','o']]\n\n    def evaluate_click(self, mouse_pos):\n        &quot;&quot;&quot;\n        Select a token if none is selected.\n        Move token to a square if it is a valid move.\n        Start a new game if the game is over.\n        &quot;&quot;&quot;\n        if self.status == 'playing':\n            row, column = get_clicked_row(mouse_pos), get_clicked_column(mouse_pos)\n            if self.selected_token:\n                move = self.is_valid_move(self.players[self.turn % 2], self.selected_token, row, column)\n                if move[0]:\n                    self.play(self.players[self.turn % 2], self.selected_token, row, column, move[1])\n                elif row == self.selected_token[0] and column == self.selected_token[1]:\n                    self.selected_token = None\n                    if self.jumping:\n                        self.jumping = False\n                        self.next_turn()\n                else:\n                    print 'invalid move'\n            else:\n                if self.game_board[row][column].lower() == self.players[self.turn % 2]:\n                    self.selected_token = [row, column]\n        elif self.status == 'game over':\n            self.__init__()\n\n    def is_valid_move(self, player, token_location, to_row, to_col):\n        &quot;&quot;&quot;\n        Check if clicked location is a valid square for player to move to.\n        &quot;&quot;&quot;\n        from_row = token_location[0]\n        from_col = token_location[1]\n        token_char = self.game_board[from_row][from_col]\n        if self.game_board[to_row][to_col] != '-':\n            return False, None\n        if (((token_char.isupper() and abs(from_row - to_row) == 1) or (player == 'x' and to_row - from_row == 1) or\n             (player == 'o' and from_row - to_row == 1)) and abs(from_col - to_col) == 1) and not self.jumping:\n            return True, None\n        if (((token_char.isupper() and abs(from_row - to_row) == 2) or (player == 'x' and to_row - from_row == 2) or\n             (player == 'o' and from_row - to_row == 2)) and abs(from_col - to_col) == 2):\n            jump_row = (to_row - from_row) \/ 2 + from_row\n            jump_col = (to_col - from_col) \/ 2 + from_col\n            if self.game_board[jump_row][jump_col].lower() not in [player, '-']:\n                return True, [jump_row, jump_col]\n        return False, None\n\n    def play(self, player, token_location, to_row, to_col, jump):\n        &quot;&quot;&quot;\n        Move selected token to a particular square, then check to see if the game is over.\n        &quot;&quot;&quot;\n        from_row = token_location[0]\n        from_col = token_location[1]\n        token_char = self.game_board[from_row][from_col]\n        self.game_board[to_row][to_col] = token_char\n        self.game_board[from_row][from_col] = '-'\n        if (player == 'x' and to_row == 7) or (player == 'o' and to_row == 0):\n            self.game_board[to_row][to_col] = token_char.upper()\n        if jump:\n            self.game_board[jump[0]][jump[1]] = '-'\n            self.selected_token = [to_row, to_col]\n            self.jumping = True\n        else:\n            self.selected_token = None\n            self.next_turn()\n        winner = self.check_winner()\n        if winner is None:\n            pygame.display.set_caption(&quot;%s's turn&quot; % self.players[self.turn % 2])\n        elif winner == 'draw':\n            pygame.display.set_caption(&quot;It's a stalemate! Click to start again&quot;)\n            self.status = 'game over'\n        else:\n            pygame.display.set_caption(&quot;%s wins! Click to start again&quot; % winner)\n            self.status = 'game over'\n\n    def next_turn(self):\n        self.turn += 1\n        pygame.display.set_caption(&quot;%s's turn&quot; % self.players[self.turn % 2])\n\n    def check_winner(self):\n        &quot;&quot;&quot;\n        check to see if someone won, or if it is a draw.\n        &quot;&quot;&quot;\n        x = sum([row.count('x') + row.count('X') for row in self.game_board])\n        if x == 0:\n            return 'o'\n        o = sum([row.count('o') + row.count('O') for row in self.game_board])\n        if o == 0:\n            return 'x'\n        if x == 1 and o == 1:\n            return 'draw'\n        return None\n\n    def draw(self):\n        &quot;&quot;&quot;\n        Draw the game board and the X's and O's.\n        &quot;&quot;&quot;\n        for i in range(9):\n            pygame.draw.line(screen, WHITE, [i * WIDTH \/ 8, 0], [i * WIDTH \/ 8, HEIGHT], 5)\n            pygame.draw.line(screen, WHITE, [0, i * HEIGHT \/ 8], [WIDTH, i * HEIGHT \/ 8], 5)\n        font = pygame.font.SysFont('Calibri', MARK_SIZE, False, False)\n        for r in range(len(self.game_board)):\n            for c in range(len(self.game_board[r])):\n                mark = self.game_board[r][c]\n                if self.players[self.turn % 2] == mark.lower():\n                    color = YELLOW\n                else:\n                    color = WHITE\n                if self.selected_token:\n                    if self.selected_token[0] == r and self.selected_token[1] == c:\n                        color = RED\n                if mark != '-':\n                    mark_text = font.render(self.game_board[r][c], True, color)\n                    x = WIDTH \/ 8 * c + WIDTH \/ 16\n                    y = HEIGHT \/ 8 * r + HEIGHT \/ 16\n                    screen.blit(mark_text, [x - mark_text.get_width() \/ 2, y - mark_text.get_height() \/ 2])\n\n# Helper functions:\ndef get_clicked_column(mouse_pos):\n    x = mouse_pos[0]\n    for i in range(1, 8):\n        if x &lt; i * WIDTH \/ 8:\n            return i - 1\n    return 7\n\ndef get_clicked_row(mouse_pos):\n    y = mouse_pos[1]\n    for i in range(1, 8):\n        if y &lt; i * HEIGHT \/ 8:\n            return i - 1\n    return 7\n\n# start pygame:\npygame.init()\nsize = (WIDTH, HEIGHT)\nscreen = pygame.display.set_mode(size)\n\n# start tic-tac-toe game:\ngame = Game()\n\n# Loop until the user clicks the close button.\ndone = False\n \n# Used to manage how fast the screen updates\nclock = pygame.time.Clock()\n\n# game loop:\nwhile not done:\n    # --- Main event loop\n    for event in pygame.event.get(): # User did something\n        if event.type == pygame.QUIT: # If user clicked close\n            done = True # Flag that we are done so we exit this loop\n        if event.type == pygame.KEYDOWN:\n            entry = str(event.key)\n        if event.type == pygame.MOUSEBUTTONDOWN:\n            mouse_x, mouse_y = pygame.mouse.get_pos()\n            game.evaluate_click(pygame.mouse.get_pos())\n\n    # --- Drawing code should go here\n \n    # First, clear the screen to black. Don't put other drawing commands\n    # above this, or they will be erased with this command.\n    screen.fill(BLACK)\n\n    # draw the game board and marks:\n    game.draw()\n\n    # --- Go ahead and update the screen with what we've drawn.\n    pygame.display.flip()\n \n    # --- Limit to 60 frames per second\n    clock.tick(60)\n\n# Close the window and quit.\n# If you forget this line, the program will 'hang'\n# on exit if running from IDLE.\npygame.quit()<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Python Checkers Game Screenshot<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"636\" src=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game_Screenshot.png\" alt=\"Python Checkers Game Screenshot\" class=\"wp-image-3122\" srcset=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game_Screenshot.png 630w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game_Screenshot-297x300.png 297w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game_Screenshot-150x150.png 150w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game_Screenshot-120x120.png 120w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it yourself. Basically, checkers is a strategy-based board game that people love to play with their friends and family in their free time. Today, I will use Python &#8230; <a title=\"How to Make Python Checkers Game? [Full Source Code]\" class=\"read-more\" href=\"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/\" aria-label=\"Read more about How to Make Python Checkers Game? [Full Source Code]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":3124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-3121","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Make Python Checkers Game? [Full Source Code]<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make Python Checkers Game? [Full Source Code]\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Edopedia\" \/>\n<meta property=\"article:author\" content=\"trulyfurqan\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-13T10:48:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-13T10:48:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"880\" \/>\n\t<meta property=\"og:image:height\" content=\"495\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Furqan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Furqan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Make Python Checkers Game? [Full Source Code]","description":"In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/","og_locale":"en_US","og_type":"article","og_title":"How to Make Python Checkers Game? [Full Source Code]","og_description":"In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it","og_url":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/","og_site_name":"Edopedia","article_author":"trulyfurqan","article_published_time":"2022-09-13T10:48:53+00:00","article_modified_time":"2022-09-13T10:48:56+00:00","og_image":[{"width":880,"height":495,"url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg","type":"image\/jpeg"}],"author":"Furqan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Furqan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#article","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/"},"author":{"name":"Furqan","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339"},"headline":"How to Make Python Checkers Game? [Full Source Code]","datePublished":"2022-09-13T10:48:53+00:00","dateModified":"2022-09-13T10:48:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/"},"wordCount":98,"commentCount":0,"publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/","url":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/","name":"How to Make Python Checkers Game? [Full Source Code]","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#primaryimage"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg","datePublished":"2022-09-13T10:48:53+00:00","dateModified":"2022-09-13T10:48:56+00:00","description":"In this tutorial, you will learn how to make Python Checkers Game. You will get the complete Python checkers game source code so that you can try it","breadcrumb":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#primaryimage","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/09\/Python_Checkers_Game.jpg","width":880,"height":495,"caption":"Python Checkers Game Source Code"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-python-checkers-game-full-source-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edopedia.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Make Python Checkers Game? [Full Source Code]"}]},{"@type":"WebSite","@id":"https:\/\/www.edopedia.com\/blog\/#website","url":"https:\/\/www.edopedia.com\/blog\/","name":"Edopedia","description":"Coding\/Programming Blog","publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edopedia.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.edopedia.com\/blog\/#organization","name":"Edopedia","url":"https:\/\/www.edopedia.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","width":400,"height":100,"caption":"Edopedia"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339","name":"Furqan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","caption":"Furqan"},"description":"Well. I've been working for the past three years as a web designer and developer. I have successfully created websites for small to medium sized companies as part of my freelance career. During that time I've also completed my bachelor's in Information Technology.","sameAs":["http:\/\/www.edopedia.com\/blog\/","trulyfurqan"],"url":"https:\/\/www.edopedia.com\/blog\/author\/furqan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/comments?post=3121"}],"version-history":[{"count":1,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3121\/revisions"}],"predecessor-version":[{"id":3123,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3121\/revisions\/3123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media\/3124"}],"wp:attachment":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media?parent=3121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/categories?post=3121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/tags?post=3121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}