【文章內(nèi)容簡介】
ingle version of renju game software. LabVIEW (Laboratory Virtual instrument Engineering Workbench) is a kind of icon instead of text line to create the application39。s graphical programming language, is by the us national instrument (NI) research and development pany. This paragraph of renju game based on simple LabVIEW, divided into the manmachine play chess model and double play chess mode. Choose the game mode after start the game, the design procedure of chessboard initialized, array display current state board. The manmachine Chinese chess playing mode, one from the puter calculation quick snip of the shear position。 Double play chess mode, the two parties decided to quick snip of the shear position. In the game, either on the board first formed the longitudinal, vertical, inclined to continuous the same color of the five pieces to the party for the win. If one party wins, this time the jump out of the dialog box, shows a party wins, and the game is over. Press ok and initial board, to start the game. Procedure mainly involves pieces to the board design, each module of the building and the front panel of beautification. Interface looks vivid image, concise and clear. Keywords: LabVIEW。 Double play chess。 Gobang 常州信息職業(yè)技術(shù)學院電子與電氣工程學院 畢業(yè)設計論文第1章 前言五子棋是一種兩人對弈的純策略型棋類游戲,是起源于中國古代的傳統(tǒng)黑白棋種之一,發(fā)展于日本,流行于歐美。它作為一個棋類競技運動,在民間十分流行。它不僅能增強人的思維能力、提高智力,而且富含哲理、有助于修身養(yǎng)性。正因為這樣五子棋越來越受到大眾的喜愛。LabVIEW是一種用圖標代替文本行創(chuàng)建應用程序的圖形化編程語言,界面看起來生動形象、簡潔明了。傳統(tǒng)文本編程語言根據(jù)語句和指令的先后順序決定程序執(zhí)行順序。LabVIEW采用的是數(shù)據(jù)流編程方式,程序框圖中節(jié)點之間的數(shù)據(jù)流向決定了VI及函數(shù)的執(zhí)行順序。為了供人們閑暇時間隨時隨地地進行娛樂,提高自己的五子棋水平,本文以LabVIEW為平臺,設計開發(fā)了這款單機版的五子棋游戲軟件。在程序制作的過程中還會涉及各個模塊的調(diào)用、雙方勝負的判定方法及前面板的美化。 第2章 LabVIEW簡介 LabVIEW的概念LabVIEW(Laboratory Virtual instrument Engineering Workbench)是一種圖形化的編程語言的開發(fā)環(huán)境,是由美國國家儀器(NI)公司研制開發(fā)的,類似于C和BASIC開發(fā)環(huán)境。但是LabVIEW與其他計算機語言的顯著區(qū)別是:其他計算機語言都是采用基于文本的語言產(chǎn)生代碼,而LabVIEW使用的是圖形化編輯語言G編寫程序,產(chǎn)生的程序是框圖的形式。它內(nèi)置了便于應用TCP/IP、ActiveX等軟件標準的庫函數(shù)。這是一個功能強大且靈活的軟件。利用它可以方便地建立自己的虛擬儀器,其圖形化的界面使得編程及使用過程都生動有趣。 圖形化的程序語言,又稱為 “G” 語言。使用這種語言編程時,基本上不寫程序代碼,取而代之的是流程圖或框圖。它盡可能利用了技術(shù)人員、科學家、工程師所熟悉的術(shù)語、圖標和概念,因此,LabVIEW是一個面向最終用戶的工具。它可以增強你構(gòu)建自己的科學和工程系統(tǒng)的能力,提供了實現(xiàn)儀器編程和數(shù)據(jù)采集系統(tǒng)的便捷途徑。使用它進行原理研究、設計、測試并實現(xiàn)儀器系統(tǒng)時,可以大大提高工作效率 LabVIEW的特點與Visual C++、Visual Basic等計算機編程語言相比,圖形化編程工具LabVIEW有一個重要的不同點:不采用基于文本的語言產(chǎn)生代碼行,而使用圖形化編程語言G編寫程序;產(chǎn)生的程序是框圖的形式,用框圖代替了傳統(tǒng)的程序代碼。LabVIEW中的Ⅵ 程序由三部分構(gòu)成:前面板、程序框圖、Ⅵ圖標、連線板。前面板是Ⅵ程序的用戶操作界面,是