TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Chess Program in PL/I

10 点作者 deanmen大约 10 年前

3 条评论

AstroJetson大约 10 年前
I had different version of a chess program back in the 80&#x27;s when I was teaching PL&#x2F;I. It is a good example of doing something complex (chess) fairly simply in code. This version looks pretty clean, maybe because of the Fortran root.<p>I&#x27;m going to guess that the 5000 &#x2F; -7500 is an error in the translation, a typo. If I find an hour to kill I may compile it up with -5000 to see what it does.
greenyoda大约 10 年前
Why is the white king represented by 5000 but the black king by -7500? All the other white and black pieces have the same absolute value.<p>(This really brought back memories. I haven&#x27;t written a PL&#x2F;I program since 1978.)
deanmen大约 10 年前
Relatively short -- the Fortran version is 500 lines.