[C language] the realization of Sanzi chess and some small improvements in AI (attack, defense, occupying favorable terrain)

This blog is aimed at C language beginners. For example, the AI part of the computer is only some relatively simple improvements (attack, defense, occupying favorable terrain), and does not involve intelligent algorithms (such as game tree). Some of the codes contain my understanding of programming. If there are deficiencies, please give me mor ...

Posted by ryy705 on Fri, 13 May 2022 23:06:01 +0300

Creating WPF programs using Prism and MVVM architecture

How to use Prism library and MVVM architecture pattern to develop WPF applications. No matter how large or complex your application is, this foundation is the same for all types of projects. That's why it's important to understand its behavior. We will learn how to use UnityContainer and how to use Prism to achieve modularity in WPF application ...

Posted by ukspudnie on Fri, 13 May 2022 03:57:49 +0300

Twelfth cell base view

GenericAPIView GenericAPIView inherits from APIVIew and adds general support methods that may be used for list view and detail view. Generally, it can be combined with one or more Mixin extension classes to realize other more advanced functions. In summary, GenericAPIView is the base class related to data management and will learn about method ...

Posted by daz1034 on Fri, 13 May 2022 01:05:54 +0300

Inline functions and references < introduction to C + + (runner's notes)

quote Concept: Instead of defining a new variable, a reference gives an alias to an existing variable. The compiler will not open up memory space for the referenced variable. It shares the same memory space with the variable it references. Syntax: Type & reference variable name (object name) = reference entity; For example, if a pe ...

Posted by 051119 on Thu, 12 May 2022 23:38:17 +0300

Graphic packing of GoLang

Graphic packing of GoLang 1. Problem introduction We have introduced the data structure of the interface. Whether it is a null interface or a non null interface, they are essentially two pointers: one is related to the type metadata and the other is related to the data loaded by the interface. There is a question that needs to be exp ...

Posted by themaxx113 on Thu, 12 May 2022 22:04:12 +0300

Chisel Tutorial - 08.Chisel parameterized generator (from Scala)

Chisel parameterized generator (from Scala) motivation To make the Chisel module a code generator, there must be something that tells the generator how to do this. This section describes the parameterization of modules, covering a variety of methods and Scala language features. The enrichment of the parameter transfer implementation is direct ...

Posted by dfownz on Thu, 12 May 2022 20:15:19 +0300

IOC Design Ideas

1. What is IOC (Control Inversion)? Controlling reversal means that the right to create an instance is vested in the framework. We don't need to care about how to create an object in the program and then use it. We just need to configure some information about the object in advance and then use it directly in the program under the framework wi ...

Posted by manlio on Thu, 12 May 2022 19:31:50 +0300

[Java foundation - object oriented (2 / 2)]

abstract keyword 1. abstract: abstract 2. abstract can be used to modify structures: classes and methods 3. Abstract modifier class: abstract class >This class cannot be instantiated >There must be a constructor in the abstract class, which is convenient for calling when subclass instantiation (involving the whole process of subclass ...

Posted by dkruythoff on Fri, 06 May 2022 06:19:41 +0300

Python package, module, library

module module definition A module is a Python file that defines many functions, classes, variables, etc.A complete large-scale python program is organized in the form of modules and packages. Function of module Modules allow you to logically organize your Python code snippets.Assigning relevant code to a module can make your code better ...

Posted by annihilate on Fri, 06 May 2022 04:12:47 +0300

[summary] regular expression (2022.05.05)

[summary] regular expression (2022.05.05) 1. Regular expression 1.1 understanding regularity Regular expression: a tool to solve string problems (a tool to make complex string problems simple) 1.2 matching symbols Ordinary character - represents the symbol itself in a regular expression. The requirement for the characters in the string ...

Posted by dickd on Fri, 06 May 2022 04:06:43 +0300