|
今天因?yàn)楣ぷ餍枰炜戳宋以瓉?lái)備份的一些文件。
結(jié)果我翻出來(lái)了好多已經(jīng)被我遺忘了的東西,都拿來(lái)跟大家分享吧,也作為一個(gè)紀(jì)念。
先分享一個(gè) LabVIEW 下黑白棋的程序。這不是我說過的使用遺傳算法的那個(gè)程序。
這是我剛開始學(xué)習(xí) LabVIEW 時(shí)編寫的程序。那時(shí)還是1999年,使用的是LabVIEW 5.1。
程序里基本只有界面,沒有實(shí)現(xiàn)什么算法。
程序在LabVIEW 5.1上開發(fā)之后,我再也沒有再維護(hù)過。我今天在LabVIEW 8.1 上試著打開它,發(fā)現(xiàn)以前所使用的一些庫(kù)VI已經(jīng)找不到了,不過只影響到了Othello server.vi。其他VI還可以正常運(yùn)行。
解開zip包:
Othello.vi 是在本機(jī)兩人對(duì)戰(zhàn)的主VI
Othello auto.vi 或 Othello super.vi 是人機(jī)對(duì)戰(zhàn)的主VI
Othello server.vi 是在局域網(wǎng)兩人對(duì)戰(zhàn)的服務(wù)端VI
Othello client.vi 是在局域網(wǎng)兩人對(duì)戰(zhàn)的客戶端VI
單片機(jī)源程序如下:
- // Othello.cpp : Defines the entry point for the console application.
- //
- #include "stdio.h"
- #include "stdlib.h"
- #include "CheckStatus.h"
- #include "TurnOver.h"
- #include "AutoPutOneChess.h"
- int GetNewChessPosition(int thePositionArrary[8][8], int chessColor,
- int step, int *autoRow, int *autoColumn)
- { rand();
- if ((step)<54)
- Auto_Put_Chess(thePositionArrary, chessColor, 7, autoRow, autoColumn);
- else
- Auto_Put_Chess(thePositionArrary, chessColor, 64-(step), autoRow, autoColumn);
- return(0);
- }
復(fù)制代碼
所有資料51hei提供下載:
黑白棋程序.zip
(518.59 KB, 下載次數(shù): 11)
2019-5-14 20:37 上傳
點(diǎn)擊文件名下載附件
|
評(píng)分
-
查看全部評(píng)分
|