Samxander's home

You shall see the difference now that we are back again!

0%

第二学期过半的一些感想

一眨眼已经过去了一个半学期,不得不感慨时间过得如此之快。在这一个半学期的学习和探索中,我对未来的方向也有了一点初步的规划。当然,这些规划能否实现,最终还是基于自己的付出,否则一切目标都是空中楼阁。

一、第一学期的学业成绩

阅读全文 »

如题,我编写了一个简单的C++程序,即一个简单扫雷游戏的实现。

游戏具有以下特点:

  • 每次输入时,会有输入提示,便于确定想打开的地块对应的行和列。
  • 基于 bfs 实现了连锁挖开地块,即点开一个无雷地块时,会连锁挖开其周围所有相邻的无雷地块,直到地块周围出现雷为止。
  • 可以自定义地图大小和地雷数量。
阅读全文 »

自给自足的头文件

头文件应该可以独立编译,并以 .h 为拓展名。给需要被导入但不属于头文件的文件设置为 .inc 拓展名,并尽量避免使用。

#define防护符

阅读全文 »

4K音游制作

Foreword

Just as I mentioned last time, I need more practical experience. Therefore, based on Unity and C#, I have decided to create a rhythm game.

阅读全文 »

C#初步学习

Foreword

During last term’s study, I found that all of my studies were focused on theories and abstract concepts. What I lacked was practical experience, such as working on a concrete project. Thus, I wanna make a new game. I’m an avid rhythm game player. tbh, It’s really cool to make a rhythm game by myself. After looking up references and websites, I decided to create a traditional 4K rhythm game based on Unity , a game engine including abundant functions and frameworks. Therefore, it’s essential for me to study C# as an important programming language.

阅读全文 »

模拟退火算法

模拟退火思想(以寻找山的最高峰为例)

  • 显然,此时朴素贪心算法会失效

  • 首先在可见范围内,随机选择一点

  • 若该点比当前位置更高,就直接去该点
  • 如果该点更低,那么有一定概率去该点
  • 在刚才的局部最优解的峰,会有一定概率走下了当前山峰,从而发现另一个山峰的上坡
  • 从而就有可能走上新的更高峰
阅读全文 »

GM(1,1)灰色预测

显然地,G代表Grey(灰色),M代表Model(模型);而(1,1)代表只含有一个变量的一阶微分方程模型。

灰色系统:

阅读全文 »

熵权法

熵的概念:

  • 信息论中,熵是对不确定性的一种度量,可判断一个事件的随机性无序程度。
  • 用熵值判断某个指标的离散程度,指标的离散程度越大该指标对综合评价的影响越大
阅读全文 »