Is F# a good language for card game AI? [closed]

一个人想着一个人 提交于 2019-12-03 06:14:00

If you're familiar with functional languages, they're a great way to write game AIs -- and if you aren't, the challenge of learning one will help you grow, and leave you a better programmer than you were. (I could truthfully say the same for declarative Prolog-like languages, and dynamic scripting/OO/multi-paradigm languages such as Ruby or Python!-).

Your task as you describe it should be easy in any of these groups of languages -- so pick one and go for it! We'll collectively be happy to help with any questions that should spring from these attempts (I'm personally unfamiliar with F# or Scala, but would be happy to help with Haskell, any ML-family language, Scheme, or Erlang -- and similarly for the other groups;-).

Seriously: full command of at least one language in each broad category (procedural, functional, declarative/clause unification, relational, dynamic/multi-paradigm, etc) makes you a seriously better programmer -- mahjong apart (and it's a classically popular game in the Romagna region of Italy, close to my hometown Bologna;-), any task that can add to your roster in this respect is well worth undertaking!!!

There's nothing you can't make yourself that appears in another language.

I've tried to make AI using java before, based off what I'd done in Prolog. I thought it would be a bitch to code. However, I just had a couple of methods that did a lot of the grunt work, taking it out of the main methods, and it worked wonderfully.

You may need to reinvent the wheel, but there shouldn't be much you can't do in C# that you can in F#.

note: I've never heard of F# before, but it can't be that bad. I may/may not be blowing out of my own arse.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!