[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-118514-en":3,"doc-seo-118514-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},118514,962075114765,"Quinn","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",6,"Technology","Development of a Machine Learning Based Chess Game in Python","This paper designs and implements a machine learning (ML)-based chess game in Python. Instead of relying on alpha-beta pruning and handcrafted evaluation functions, the approach trains a neural network using supervised learning to evaluate chess positions and select moves. The system uses the python-chess library to represent games and scikit-learn to implement the ML components, demonstrating that simple feature engineering and a modest network can learn effective strategies. Built for Jupyter Notebook, it enables interactive play against the ML agent and supports educational exploration of chess strategy and ML concepts.","DEVELOPMENT OF A MACHINE LEARNING BASED  \nCHESS GAME IN PYTHON  \nDwi Hastuti Electrical Engineering Universitas PGRI Adi Buana Surabaya Surabaya, Indonesia [dwi.hastuti@unipasby.ac.id](dwi.hastuti@unipasby.ac.id)  \nWildan Surya Wijaya Electrical Engineering Universitas PGRI Adi Buana Surabaya Surabaya, Indonesia [wildansurya@unipasby.ac.id](wildansurya@unipasby.ac.id)  \nAbstract— This paper presents the design and implementation of a Machine Learning (ML)-based chess game developed in Python. Unlike traditional chess game that rely primarily on alpha-beta pruning and handcrafted evaluation functions, this approach employs supervised learning techniques to create a neural network model capable of evaluating chess positions and making move decisions. The system leverages the python-chess library for game representation and the scikit-learn framework for implementing the machine learning components. We demonstrate that even with relatively simple feature engineering and a modest neural network architecture, the system can learn effective chess strategies. The implementation is designed to run in a Jupyter Notebook environment, providing an interactive interface for human players to compete against the ML agent while facilitating educational insights into both chess strategy and machine learning principles.  \nKeywords— Machine Learning, Chess Game, Neural Networks, Supervised Learning, Python.  \nI. INTRODUCTION  \nMachine Learning (ML) has become a fundamental approach in the development of intelligent chess systems, with neural network architectures as a key component in such frameworks [1]–[3] . Supervised learning is one of the widely used training methods, allowing models to learn from historical data to understand patterns of play [4]–[6] . Python has become a practical implementation tool that allows the integration of machine learning algorithms in chess system development due to its ease of use and extensive library ecosystem [1], [5], [7] . Since the early days of artificial intelligence (AI), chess has been used as a classical testing ground, as introduced in Claude Shannon's seminal work and continuing to the present day [8], [9], [10] . Unlike explicit rule-based systems, ML algorithms allow systems to automatically learn patterns of chess play from match data without the need for direct instruction [4], [11], [12] .  \nMultilayer neural networks have the ability to evaluate board positions, predict optimal moves, and recognize complex strategy patterns [3], [7], [13] . Modern chess systems often start training with supervised learning using data from master games or self-play engines, with board positions as input and move evaluations or win  \nprobabilities as output [5], [6], [14] . In its implementation, Python allows rapid experimentation in interactive environments such as Jupyter Notebook, which strongly supports the iterative process of developing AI models [1], [7], [15] . In comparison, traditional chess engines such as Stockfish and Komodo rely on manually designed evaluation functions and highly efficient movefinding techniques [9], [12], [16] . However, ML-based approaches, such as those implemented by AlphaZero, have opened up a new paradigm, using reinforcement learning and neural networks to outperform rule-based systems [10], [11], [15] .  \nThis paper presents a more accessible approach by combining traditional chess programming and supervised learning techniques to build a chess engine with the main goals of: (1) developing a feature representation of board positions suitable for machine learning, (2) training a neural network to evaluate board positions based on labeled data, (3) implementing a move selection strategy that leverages the trained model, (4) providing an interactive environment for human players to play against the ML-based engine, and (5) making the system educational and accessible to intermediate Python programmers [5], [8], [17] . The system is not intended to compete with the world's ","cbCaip9cy6KkJFFr","https://ap.wps.com/l/cbCaip9cy6KkJFFr","pdf",628825,1,8,"English","en",105,"# Introduction\n## Motivation and background\n## Goals of the proposed system\n# Methods\n## System architecture\n## Chess game representation\n## Feature extraction\n## Machine learning model\n## Move selection strategy","[{\"question\":\"How does the chess game use machine learning to choose moves?\",\"answer\":\"A supervised-learning neural network evaluates board positions and informs move selection by scoring potential future states.\"},{\"question\":\"Which libraries support the implementation in Python?\",\"answer\":\"python-chess is used for game representation and mechanics, while scikit-learn supports the machine learning components.\"},{\"question\":\"What is the purpose of using a Jupyter Notebook environment?\",\"answer\":\"Jupyter Notebook provides an interactive interface for human players to compete with the ML agent and helps users learn the underlying chess and ML principles.\"}]","Development of a Machine Learning Based Chess Game in Python | PDF",1785683948,20,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"development-of-a-machine-learning-based-chess-game-in-python","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/technology/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/development-of-a-machine-learning-based-chess-game-in-python/118514/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-02",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"How does the chess game use machine learning to choose moves?","Question",{"text":75,"@type":76},"A supervised-learning neural network evaluates board positions and informs move selection by scoring potential future states.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"Which libraries support the implementation in Python?",{"text":80,"@type":76},"python-chess is used for game representation and mechanics, while scikit-learn supports the machine learning components.",{"name":82,"@type":73,"acceptedAnswer":83},"What is the purpose of using a Jupyter Notebook environment?",{"text":84,"@type":76},"Jupyter Notebook provides an interactive interface for human players to compete with the ML agent and helps users learn the underlying chess and ML principles.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,113,118,122,126,129,133],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":111,"slug":112},50,"technology",{"id":114,"doc_module":4,"doc_module_name":46,"category_name":115,"show_sort_weight":116,"slug":117},7,"Healthcare",40,"healthcare",{"id":21,"doc_module":4,"doc_module_name":46,"category_name":119,"show_sort_weight":120,"slug":121},"Research & Report",30,"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":29,"slug":125},9,"Religion & Spirituality","religion-spirituality",{"id":29,"doc_module":4,"doc_module_name":46,"category_name":127,"show_sort_weight":29,"slug":128},"World Cup","world-cup",{"id":130,"doc_module":4,"doc_module_name":46,"category_name":131,"show_sort_weight":130,"slug":132},10,"Lifestyle","lifestyle",{"id":134,"doc_module":4,"doc_module_name":46,"category_name":135,"show_sort_weight":106,"slug":136},19,"General","general"]