貪吃蛇*要點分析: *1)數據結構:matrix[][]用來存儲地圖上面的信息,如果什么也沒有設置為false, * 如果有食物或蛇,設置為true;nodeArray,一個LinkedList,用來保存蛇的每 * 一節;food用來保存食物的位置;而Node類是保存每個位置的信息。 *2)重要函數: * changeDirection(int newDirection) ,用來改變蛇前進的方向,而且只是 * 保存頭部的前進方向,因為其他的前進方向已經用位置來指明了。 其中newDirection * 必須和原來的direction不是相反方向,所以相反方向的值用了同樣的奇偶性。在測試 * 的時候使用了direction%2!=newDirection%2 進行判斷。 * moveOn(),用來更新蛇的位置,對于當前方向,把頭部位置進行相應改變。如果越界, * 結束;否則,檢測是否遇到食物(加頭部)或身體(結束);如果什么都沒有,加上頭部, * 去掉尾部。由于用了LinkedList數據結構,省去了相當多的麻煩。
上傳時間: 2014-06-14
上傳用戶:cjf0304
Serial/Parallel converter, interfacing JTAG chain with FTDI FT245BM
標簽: interfacing converter Parallel Serial
上傳時間: 2016-06-12
上傳用戶:as275944189
Matlab code for the solution to Riccati matrix difference equations associated with the Kalman filter
標簽: associated difference equations the
上傳時間: 2014-06-12
上傳用戶:釣鰲牧馬
美國標準化組織和馬里蘭大學共同開發.實現java matrix包. JAMA由六個java類組成:Matrix, CholeskyDecomposition , LUDecomposition QRDecomposition SingularValueDecomposition EigenvalueDecomposition . 它提供了廣泛的構造函數,豐富的get,set訪問子matrix和元素matrix. 基本的矩陣操作有:矩陣的加,乘,矩陣范數.和提供了方便的打印矩陣的方法. 提供了五個基本的矩陣分離類.可以通過Matrix類調用它們來進行線性計算,翻轉和其它矩陣方法.
標簽: CholeskyDecomposition java LUDecomposition Matrix
上傳時間: 2014-01-16
上傳用戶:123456wh
matlab的在離散方式的圖像縮放MATLAB 的名稱源自 Matrix Laboratory ,由美國MathWorks公司推出。它是一種科學計算軟件,專門以矩陣的形式處理數據。 MATLAB 將高性能的數值計算和可視化集成在一起,構成了一個方便的、界面友好的用戶環境,并提供了大量的內置函數。
標簽: Laboratory matlab MATLAB Matrix
上傳時間: 2013-12-30
上傳用戶:杜瑩12345
2X2 matrix s SVD used Cordic
上傳時間: 2014-12-08
上傳用戶:ardager
(1) 設計和編寫代表矩陣的Matrix類。該類包括矩陣行列數變量int rows和int cols,矩陣數據數組double data[][],構造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),獲取某元素值的方法getData(int row,int col),設置某元素值的方法setData(int row,int col,double value),計算兩個矩陣的乘積的方法multiply(Matrix m)以及toString()等內容。
上傳時間: 2016-08-19
上傳用戶:qiao8960
an modern SQP method to make the original matrix more concise
標簽: 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.
標簽: Versatile knowledge estimator servoing
上傳時間: 2016-08-26
上傳用戶:大三三
矩陣計算 Matrix Computations (3rd Ed.,1996)
標簽: Computations Matrix 1996 3rd
上傳時間: 2016-08-31
上傳用戶:wang5829