注册 | 登录

游侠NETSHOW论坛





游侠NETSHOW论坛 游侠NETSHOW论坛 游侠PC游戏综合讨论区 不擅长微操的朋友有福了(用代码打星际---BWAPI项目) ...
查看: 7142|回复: 2
打印 上一主题 下一主题

[转贴] 不擅长微操的朋友有福了(用代码打星际---BWAPI项目) [复制链接]

帖子
2268
精华
1
积分
1465
金钱
1805
荣誉
13
人气
1
评议
0
楼主
发表于 2009-12-4 14:48:10 |显示全部楼层
The Brood War Application Programming Interface (BWAPI) is a free and open source C++ framework for creating AI modules for Starcraft: Broodwar. Using BWAPI, programmers can retrieve information on players and individual units in Starcraft as well as issue a wide variety of commands to units, opening the doors for custom AIs with new micro and macro algorithms.

This is a screen shot of BWAI, an AI module created with BWAPI:

By default, BWAPI only reveals the visible parts of the game state to AI modules. Information on units that have gone back into the fog of war is denied to the AI. This enables programmers to write competitive non-cheating AIs that must plan and operate under partial information conditions. Furthermore, by default BWAPI disables the Starcraft GUI, relegating the user to the role of a spectator while the AI module plays the game. This is done to ensure that the winner of AI vs AI matches is determined solely based on the programming and algorithms in the AI module itself, rather than by human assistance and intervention.

However at the start of a match AI modules have the ability to enable one or more cheat flags, which increase the functionality of BWAPI. When an AI module enables a cheat flag, its activation is announced to all other players in the Starcraft match, which makes hosting non-cheating AI competitions and matches painless - simply disqualify AI modules that enable these flags. Currently there are two cheat flags. The first one, once enabled, provides the AI module with complete map information on all units in the game, not just visible ones. The second flag, once enabled, provides the AI with input from the user and re-enables the Starcraft GUI, allowing the user to play Starcraft along with the AI module. This allows programmers to write AI modules that use all the information on the map as well as make hybrid set-ups where human players use custom AIs and user interfaces to augment their performance.

老实说这还不够麻烦的。。。。
风吹柳露荷饮泪,雨打桃花水流红

使用道具 举报

帖子
2268
精华
1
积分
1465
金钱
1805
荣誉
13
人气
1
评议
0
沙发
发表于 2009-12-4 16:56:16 |显示全部楼层
原帖由 beijua 于 2009-12-4 16:50 发表
没战争迷雾就成老CC系列了。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

我刚才贴的那一段有:
Information on units that have gone back into the fog of war is denied to the AI. This enables programmers to write competitive non-cheating AIs that must plan and operate under partial information conditions.

AI是无法利用战争烟雾内单位的数据的,不作弊
风吹柳露荷饮泪,雨打桃花水流红

使用道具 举报

帖子
2268
精华
1
积分
1465
金钱
1805
荣誉
13
人气
1
评议
0
板凳
发表于 2009-12-4 17:26:49 |显示全部楼层
原帖由 yesornotmd 于 2009-12-4 17:16 发表
这不是什么新技术,帝国时代的资深玩家很多都会自制AI的,国内最著名的BOOM2就是获得国际大奖的帝国对战AI,在不作弊的情况下也能打赢很多帝国爱好者,水平在1600-左右。

发现很多帝国的老技术都被暴雪借鉴了,如语音嘲弄等等 ...

95年的W2就有嘲弄了......w1没好好打过,不知有没有

[ 本帖最后由 nightson1988 于 2009-12-4 17:28 编辑 ]
风吹柳露荷饮泪,雨打桃花水流红

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-16 07:05 , Processed in 0.306934 second(s), 11 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到