An Algorithm for Automatically Updating a Forsyth-Edwards Notation String Without an Array Board Representation

Azlan Iqbal
{"title":"An Algorithm for Automatically Updating a Forsyth-Edwards Notation String Without an Array Board Representation","authors":"Azlan Iqbal","doi":"10.1109/ICIMU49871.2020.9243487","DOIUrl":null,"url":null,"abstract":"We present an algorithm that correctly updates the Forsyth-Edwards Notation (FEN) chessboard character string after any move is made without the need for an intermediary array representation of the board. In particular, this relates to software that have to do with chess, certain chess variants and possibly even similar board games with comparable position representation. Even when performance may be equal or inferior to using arrays, the algorithm still provides an accurate and viable alternative to accomplishing the same thing, or when there may be a need for additional or side processing in conjunction with arrays. Furthermore, the end result (i.e. an updated FEN string) is immediately ready for export to any other internal module or external program, unlike with an intermediary array which needs to be first converted into a FEN string for export purposes. The algorithm is especially useful when there are no existing array-based modules to represent a visual board as it can do without them entirely. We provide examples that demonstrate the correctness of the algorithm given a variety of positions involving castling, en passant and pawn promotion.","PeriodicalId":344064,"journal":{"name":"2020 8th International Conference on Information Technology and Multimedia (ICIMU)","volume":"98 3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-08-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 8th International Conference on Information Technology and Multimedia (ICIMU)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIMU49871.2020.9243487","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We present an algorithm that correctly updates the Forsyth-Edwards Notation (FEN) chessboard character string after any move is made without the need for an intermediary array representation of the board. In particular, this relates to software that have to do with chess, certain chess variants and possibly even similar board games with comparable position representation. Even when performance may be equal or inferior to using arrays, the algorithm still provides an accurate and viable alternative to accomplishing the same thing, or when there may be a need for additional or side processing in conjunction with arrays. Furthermore, the end result (i.e. an updated FEN string) is immediately ready for export to any other internal module or external program, unlike with an intermediary array which needs to be first converted into a FEN string for export purposes. The algorithm is especially useful when there are no existing array-based modules to represent a visual board as it can do without them entirely. We provide examples that demonstrate the correctness of the algorithm given a variety of positions involving castling, en passant and pawn promotion.
一种不带数组板表示的forsyths - edwards符号字符串的自动更新算法
我们提出了一种算法,可以在任何移动之后正确更新福赛斯-爱德华兹符号(FEN)棋盘字符串,而不需要中间数组表示棋盘。特别是,这涉及到与国际象棋有关的软件,某些国际象棋变体,甚至可能是具有可比位置表示的类似棋盘游戏。即使性能可能等于或不如使用数组,该算法仍然为完成相同的事情提供了一个准确和可行的替代方案,或者当可能需要与数组一起进行额外或侧处理时。此外,最终结果(即更新的FEN字符串)可以立即准备好导出到任何其他内部模块或外部程序,而不像中间数组需要首先转换为FEN字符串以用于导出目的。当没有现有的基于数组的模块来表示可视板时,该算法特别有用,因为它可以完全没有它们。我们提供了一些例子来证明该算法的正确性,给出了包括易位、过路和棋子提升在内的各种位置。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信