貪吃蛇*要點(diǎn)分析: *1)數(shù)據(jù)結(jié)構(gòu):matrix[][]用來存儲地圖上面的信息,如果什么也沒有設(shè)置為false, * 如果有食物或蛇,設(shè)置為true;nodeArray,一個LinkedList,用來保存蛇的每 * 一節(jié);food用來保存食物的位置;而Node類是保存每個位置的信息。 *2)重要函數(shù): * changeDirection(int newDirection) ,用來改變蛇前進(jìn)的方向,而且只是 * 保存頭部的前進(jìn)方向,因為其他的前進(jìn)方向已經(jīng)用位置來指明了。 其中newDirection * 必須和原來的direction不是相反方向,所以相反方向的值用了同樣的奇偶性。在測試 * 的時候使用了direction%2!=newDirection%2 進(jìn)行判斷。 * moveOn(),用來更新蛇的位置,對于當(dāng)前方向,把頭部位置進(jìn)行相應(yīng)改變。如果越界, * 結(jié)束;否則,檢測是否遇到食物(加頭部)或身體(結(jié)束);如果什么都沒有,加上頭部, * 去掉尾部。由于用了LinkedList數(shù)據(jù)結(jié)構(gòu),省去了相當(dāng)多的麻煩。
標(biāo)簽: matrix 貪吃蛇 分 數(shù)據(jù)結(jié)構(gòu)
上傳時間: 2014-06-14
上傳用戶:cjf0304
Serial/Parallel converter, interfacing JTAG chain with FTDI FT245BM
標(biāo)簽: interfacing converter Parallel Serial
上傳時間: 2016-06-12
上傳用戶:as275944189
Matlab code for the solution to Riccati matrix difference equations associated with the Kalman filter
標(biāo)簽: associated difference equations the
上傳時間: 2014-06-12
上傳用戶:釣鰲牧馬
美國標(biāo)準(zhǔn)化組織和馬里蘭大學(xué)共同開發(fā).實(shí)現(xiàn)java matrix包. JAMA由六個java類組成:Matrix, CholeskyDecomposition , LUDecomposition QRDecomposition SingularValueDecomposition EigenvalueDecomposition . 它提供了廣泛的構(gòu)造函數(shù),豐富的get,set訪問子matrix和元素matrix. 基本的矩陣操作有:矩陣的加,乘,矩陣范數(shù).和提供了方便的打印矩陣的方法. 提供了五個基本的矩陣分離類.可以通過Matrix類調(diào)用它們來進(jìn)行線性計算,翻轉(zhuǎn)和其它矩陣方法.
標(biāo)簽: CholeskyDecomposition java LUDecomposition Matrix
上傳時間: 2014-01-16
上傳用戶:123456wh
matlab的在離散方式的圖像縮放MATLAB 的名稱源自 Matrix Laboratory ,由美國MathWorks公司推出。它是一種科學(xué)計算軟件,專門以矩陣的形式處理數(shù)據(jù)。 MATLAB 將高性能的數(shù)值計算和可視化集成在一起,構(gòu)成了一個方便的、界面友好的用戶環(huán)境,并提供了大量的內(nèi)置函數(shù)。
標(biāo)簽: Laboratory matlab MATLAB Matrix
上傳時間: 2013-12-30
上傳用戶:杜瑩12345
2X2 matrix s SVD used Cordic
標(biāo)簽: matrix Cordic used 2X2
上傳時間: 2014-12-08
上傳用戶:ardager
(1) 設(shè)計和編寫代表矩陣的Matrix類。該類包括矩陣行列數(shù)變量int rows和int cols,矩陣數(shù)據(jù)數(shù)組double data[][],構(gòu)造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),獲取某元素值的方法getData(int row,int col),設(shè)置某元素值的方法setData(int row,int col,double value),計算兩個矩陣的乘積的方法multiply(Matrix m)以及toString()等內(nèi)容。
標(biāo)簽: int Matrix cols rows
上傳時間: 2016-08-19
上傳用戶:qiao8960
an modern SQP method to make the original matrix more concise
標(biāo)簽: original concise modern method
上傳時間: 2014-01-25
上傳用戶:13517191407
Versatile visual servoing without knowledge of true jacobian.pdf cobian matrix estimator. The Jacobian matrix estimator does not need a priori knowledge of the kinematic structure and parameters of the robot system, such as camera and link parameters. The proposed visual servoing control scheme ensures the convergence of the image-features to desired trajectories, by using the estimated Jacobian matrix, which is proved by the Lyapunov stability theory. To show the effectiveness of the proposed scheme, simulation and experimental results are presented.
標(biāo)簽: Versatile knowledge estimator servoing
上傳時間: 2016-08-26
上傳用戶:大三三
矩陣計算 Matrix Computations (3rd Ed.,1996)
標(biāo)簽: Computations Matrix 1996 3rd
上傳時間: 2016-08-31
上傳用戶:wang5829
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1